1- # This Travis configuration file is built after a Cordova Paramedic
1+ # This Travis configuration file is built after a Cordova Paramedic
22# specific template with minimal modifications and adaptations:
33# https://github.com/apache/cordova-paramedic/blob/master/.travis.yml
44
@@ -12,18 +12,18 @@ addons:
1212env :
1313 global :
1414 - SAUCE_USERNAME=snay
15- - TRAVIS_NODE_VERSION=8
15+ - TRAVIS_NODE_VERSION=12
1616 - ANDROID_API_LEVEL=28
1717 - ANDROID_BUILD_TOOLS_VERSION=28.0.3
1818
1919language : node_js
20- node_js : 8
20+ node_js : 12
2121
2222# yaml anchor/alias: https://medium.com/@tommyvn/travis-yml-dry-with-anchors-8b6a3ac1b027
2323
2424_ios : &_ios
2525 os : osx
26- osx_image : xcode10.2
26+ osx_image : xcode10.3
2727
2828_android : &_android
2929 language : android
@@ -35,9 +35,9 @@ _android: &_android
3535 - build-tools-$ANDROID_BUILD_TOOLS_VERSION
3636 - android-$ANDROID_API_LEVEL
3737 licenses :
38- - ' android-sdk-preview-license-.+'
39- - ' android-sdk-license-.+'
40- - ' google-gdk-license-.+'
38+ - " android-sdk-preview-license-.+"
39+ - " android-sdk-license-.+"
40+ - " google-gdk-license-.+"
4141
4242matrix :
4343 include :
@@ -72,13 +72,13 @@ matrix:
7272
7373before_install :
7474 # manually install Node for `language: android`
75- - if [[ "$PLATFORM" =~ android ]]; then nvm install $TRAVIS_NODE_VERSION; fi
75+ - if [[ "$PLATFORM" =~ android ]]; then nvm install $TRAVIS_NODE_VERSION; fi
7676 - node --version
7777 - if [[ "$PLATFORM" =~ android ]]; then gradle --version; fi
7878 - if [[ "$PLATFORM" =~ ios ]]; then npm install -g ios-deploy; fi
7979 - npm install -g cordova
8080 # install paramedic if not running on paramedic repo
81- - if ! [[ "$TRAVIS_REPO_SLUG" =~ cordova-paramedic ]]; then npm install -g github:apache/cordova-paramedic; fi
81+ - if ! [[ "$TRAVIS_REPO_SLUG" =~ cordova-paramedic ]]; then npm install -g github:apache/cordova-paramedic; fi
8282
8383install :
8484 - npm install
@@ -107,8 +107,9 @@ before_script:
107107 echo "PARAMEDIC_BUILDNAME=$PARAMEDIC_BUILDNAME"
108108script :
109109 - $TEST_COMMAND
110- - if [[ "$ADDITIONAL_TESTS_DIR" != "" ]]; then
110+ - |
111+ if [[ "$ADDITIONAL_TESTS_DIR" != "" ]]; then
111112 cd $ADDITIONAL_TESTS_DIR && npm install && npm test;
112- else
113- $PARAMEDIC_COMMAND --config ./pr/$PLATFORM --plugin $PARAMEDIC_PLUGIN_TO_TEST --buildName $PARAMEDIC_BUILDNAME;
113+ else
114+ $PARAMEDIC_COMMAND --config ./pr/$PLATFORM --plugin $PARAMEDIC_PLUGIN_TO_TEST --buildName $PARAMEDIC_BUILDNAME;
114115 fi
0 commit comments