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:11:33 UTC

[cordova-paramedic] branch janpio-improve_ci_android 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 janpio-improve_ci_android
in repository https://gitbox.apache.org/repos/asf/cordova-paramedic.git


The following commit(s) were added to refs/heads/janpio-improve_ci_android by this push:
     new 4bc02a7  Improve Android parts of .travis.yml (use anchor/alias) (#106)
4bc02a7 is described below

commit 4bc02a73a602ced9b24716f8a1d6b6946c059ff3
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 45461cf..ff286d6 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:
     - env: PLATFORM=local
@@ -24,96 +39,19 @@ matrix:
       os: osx
       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