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 11:47:09 UTC

[cordova-paramedic] branch janpio-improve_ci_android_test updated: test anchor/alias

This is an automated email from the ASF dual-hosted git repository.

janpio pushed a commit to branch janpio-improve_ci_android_test
in repository https://gitbox.apache.org/repos/asf/cordova-paramedic.git


The following commit(s) were added to refs/heads/janpio-improve_ci_android_test by this push:
     new 90d406c  test anchor/alias
90d406c is described below

commit 90d406c84f596981a26a05c44849da5844d9e3c7
Author: Jan Piotrowski <pi...@gmail.com>
AuthorDate: Fri Apr 5 13:47:05 2019 +0200

    test anchor/alias
---
 .travis.yml | 51 +++++++++++++++++++++------------------------------
 1 file changed, 21 insertions(+), 30 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 8189e61..ff286d6 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -13,15 +13,20 @@ env:
 language: node_js
 node_js: 6
 
-android:
-  components:
-    - tools
-    - build-tools-$ANDROID_BUILD_TOOLS_VERSION
-    - android-$ANDROID_API_LEVEL
-  licenses:
-    - 'android-sdk-preview-license-.+'
-    - 'android-sdk-license-.+'
-    - 'google-gdk-license-.+'
+# 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:
@@ -34,33 +39,19 @@ matrix:
       os: osx
       osx_image: xcode9
     - env: PLATFORM=android-4.4
-      os: linux
-      language: android
-      jdk: oraclejdk8
+      <<: *_android
     - env: PLATFORM=android-5.1
-      os: linux
-      language: android
-      jdk: oraclejdk8
+      <<: *_android
     - env: PLATFORM=android-6.0
-      os: linux
-      language: android
-      jdk: oraclejdk8
+      <<: *_android
     - env: PLATFORM=android-7.0
-      os: linux
-      language: android
-      jdk: oraclejdk8
+      <<: *_android
     - env: PLATFORM=android-7.1
-      os: linux
-      language: android
-      jdk: oraclejdk8
+      <<: *_android
     - env: PLATFORM=android-8.0
-      os: linux
-      language: android
-      jdk: oraclejdk8
+      <<: *_android
     - env: PLATFORM=android-8.1
-      os: linux
-      language: android
-      jdk: oraclejdk8
+      <<: *_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