You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ja...@apache.org on 2019/04/05 15:15:15 UTC
[cordova-paramedic] branch master updated: Improve Android parts of
.travis.yml (use anchor/alias) (#106)
This is an automated email from the ASF dual-hosted git repository.
janpio pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-paramedic.git
The following commit(s) were added to refs/heads/master by this push:
new ce697af Improve Android parts of .travis.yml (use anchor/alias) (#106)
ce697af is described below
commit ce697af40d0cffee2989f48c0b3cfaaffdf7ffe8
Author: Jan Piotrowski <pi...@gmail.com>
AuthorDate: Fri Apr 5 17:11:29 2019 +0200
Improve Android parts of .travis.yml (use anchor/alias) (#106)
* what happens if you move the android config stuff out?
* test anchor/alias
---
.travis.yml | 106 +++++++++++++-----------------------------------------------
1 file changed, 22 insertions(+), 84 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 17949f2..6f27e31 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -13,6 +13,21 @@ env:
language: node_js
node_js: 6
+# anchor/alias: https://medium.com/@tommyvn/travis-yml-dry-with-anchors-8b6a3ac1b027
+_android: &_android
+ language: android
+ os: linux
+ jdk: oraclejdk8
+ android:
+ components:
+ - tools
+ - build-tools-$ANDROID_BUILD_TOOLS_VERSION
+ - android-$ANDROID_API_LEVEL
+ licenses:
+ - 'android-sdk-preview-license-.+'
+ - 'android-sdk-license-.+'
+ - 'google-gdk-license-.+'
+
matrix:
include:
# one local test, without saucelabs
@@ -32,96 +47,19 @@ matrix:
osx_image: xcode9
- env: PLATFORM=android-4.4
- os: linux
- language: android
- jdk: oraclejdk8
- android:
- components:
- - tools
- - build-tools-$ANDROID_BUILD_TOOLS_VERSION
- - android-$ANDROID_API_LEVEL
- licenses:
- - 'android-sdk-preview-license-.+'
- - 'android-sdk-license-.+'
- - 'google-gdk-license-.+'
+ <<: *_android
- env: PLATFORM=android-5.1
- os: linux
- language: android
- jdk: oraclejdk8
- android:
- components:
- - tools
- - build-tools-$ANDROID_BUILD_TOOLS_VERSION
- - android-$ANDROID_API_LEVEL
- licenses:
- - 'android-sdk-preview-license-.+'
- - 'android-sdk-license-.+'
- - 'google-gdk-license-.+'
+ <<: *_android
- env: PLATFORM=android-6.0
- os: linux
- language: android
- jdk: oraclejdk8
- android:
- components:
- - tools
- - build-tools-$ANDROID_BUILD_TOOLS_VERSION
- - android-$ANDROID_API_LEVEL
- licenses:
- - 'android-sdk-preview-license-.+'
- - 'android-sdk-license-.+'
- - 'google-gdk-license-.+'
+ <<: *_android
- env: PLATFORM=android-7.0
- os: linux
- language: android
- jdk: oraclejdk8
- android:
- components:
- - tools
- - build-tools-$ANDROID_BUILD_TOOLS_VERSION
- - android-$ANDROID_API_LEVEL
- licenses:
- - 'android-sdk-preview-license-.+'
- - 'android-sdk-license-.+'
- - 'google-gdk-license-.+'
+ <<: *_android
- env: PLATFORM=android-7.1
- os: linux
- language: android
- jdk: oraclejdk8
- android:
- components:
- - tools
- - build-tools-$ANDROID_BUILD_TOOLS_VERSION
- - android-$ANDROID_API_LEVEL
- licenses:
- - 'android-sdk-preview-license-.+'
- - 'android-sdk-license-.+'
- - 'google-gdk-license-.+'
+ <<: *_android
- env: PLATFORM=android-8.0
- os: linux
- language: android
- jdk: oraclejdk8
- android:
- components:
- - tools
- - build-tools-$ANDROID_BUILD_TOOLS_VERSION
- - android-$ANDROID_API_LEVEL
- licenses:
- - 'android-sdk-preview-license-.+'
- - 'android-sdk-license-.+'
- - 'google-gdk-license-.+'
+ <<: *_android
- env: PLATFORM=android-8.1
- os: linux
- language: android
- jdk: oraclejdk8
- android:
- components:
- - tools
- - build-tools-$ANDROID_BUILD_TOOLS_VERSION
- - android-$ANDROID_API_LEVEL
- licenses:
- - 'android-sdk-preview-license-.+'
- - 'android-sdk-license-.+'
- - 'google-gdk-license-.+'
+ <<: *_android
before_install:
# `language: android` has no Node.js installed, therefore we need to install it manually
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org