1
- # This Travis configuration file is built after a Cordova Paramedic
1
+ # This Travis configuration file is built after a Cordova Paramedic
2
2
# specific template with minimal modifications and adaptations:
3
3
# https://github.com/apache/cordova-paramedic/blob/master/.travis.yml
4
4
@@ -12,18 +12,18 @@ addons:
12
12
env :
13
13
global :
14
14
- SAUCE_USERNAME=snay
15
- - TRAVIS_NODE_VERSION=8
15
+ - TRAVIS_NODE_VERSION=12
16
16
- ANDROID_API_LEVEL=28
17
17
- ANDROID_BUILD_TOOLS_VERSION=28.0.3
18
18
19
19
language : node_js
20
- node_js : 8
20
+ node_js : 12
21
21
22
22
# yaml anchor/alias: https://medium.com/@tommyvn/travis-yml-dry-with-anchors-8b6a3ac1b027
23
23
24
24
_ios : &_ios
25
25
os : osx
26
- osx_image : xcode10.2
26
+ osx_image : xcode10.3
27
27
28
28
_android : &_android
29
29
language : android
@@ -35,9 +35,9 @@ _android: &_android
35
35
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
36
36
- android-$ANDROID_API_LEVEL
37
37
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-.+"
41
41
42
42
matrix :
43
43
include :
@@ -70,13 +70,13 @@ matrix:
70
70
71
71
before_install :
72
72
# manually install Node for `language: android`
73
- - if [[ "$PLATFORM" =~ android ]]; then nvm install $TRAVIS_NODE_VERSION; fi
73
+ - if [[ "$PLATFORM" =~ android ]]; then nvm install $TRAVIS_NODE_VERSION; fi
74
74
- node --version
75
75
- if [[ "$PLATFORM" =~ android ]]; then gradle --version; fi
76
76
- if [[ "$PLATFORM" =~ ios ]]; then npm install -g ios-deploy; fi
77
77
- npm install -g cordova
78
78
# install paramedic if not running on paramedic repo
79
- - if ! [[ "$TRAVIS_REPO_SLUG" =~ cordova-paramedic ]]; then npm install -g github:apache/cordova-paramedic; fi
79
+ - if ! [[ "$TRAVIS_REPO_SLUG" =~ cordova-paramedic ]]; then npm install -g github:apache/cordova-paramedic; fi
80
80
81
81
install :
82
82
- npm install
@@ -105,9 +105,9 @@ before_script:
105
105
echo "PARAMEDIC_BUILDNAME=$PARAMEDIC_BUILDNAME"
106
106
script :
107
107
- $TEST_COMMAND
108
- - if [[ "$ADDITIONAL_TESTS_DIR" != "" ]]; then
108
+ - |
109
+ if [[ "$ADDITIONAL_TESTS_DIR" != "" ]]; then
109
110
cd $ADDITIONAL_TESTS_DIR && npm install && npm test;
110
111
else
111
112
$PARAMEDIC_COMMAND --config ./pr/$PLATFORM --plugin $PARAMEDIC_PLUGIN_TO_TEST --buildName $PARAMEDIC_BUILDNAME;
112
113
fi
113
-
0 commit comments