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 :
@@ -75,13 +75,13 @@ matrix:
75
75
76
76
before_install :
77
77
# manually install Node for `language: android`
78
- - if [[ "$PLATFORM" =~ android ]]; then nvm install $TRAVIS_NODE_VERSION; fi
78
+ - if [[ "$PLATFORM" =~ android ]]; then nvm install $TRAVIS_NODE_VERSION; fi
79
79
- node --version
80
80
- if [[ "$PLATFORM" =~ android ]]; then gradle --version; fi
81
81
- if [[ "$PLATFORM" =~ ios ]]; then npm install -g ios-deploy; fi
82
82
- npm install -g cordova
83
83
# install paramedic if not running on paramedic repo
84
- - if ! [[ "$TRAVIS_REPO_SLUG" =~ cordova-paramedic ]]; then npm install -g github:apache/cordova-paramedic; fi
84
+ - if ! [[ "$TRAVIS_REPO_SLUG" =~ cordova-paramedic ]]; then npm install -g github:apache/cordova-paramedic; fi
85
85
86
86
install :
87
87
- npm install
@@ -110,8 +110,9 @@ before_script:
110
110
echo "PARAMEDIC_BUILDNAME=$PARAMEDIC_BUILDNAME"
111
111
script :
112
112
- $TEST_COMMAND
113
- - if [[ "$ADDITIONAL_TESTS_DIR" != "" ]]; then
113
+ - |
114
+ if [[ "$ADDITIONAL_TESTS_DIR" != "" ]]; then
114
115
cd $ADDITIONAL_TESTS_DIR && npm install && npm test;
115
- else
116
- $PARAMEDIC_COMMAND --config ./pr/$PLATFORM --plugin $PARAMEDIC_PLUGIN_TO_TEST --buildName $PARAMEDIC_BUILDNAME;
116
+ else
117
+ $PARAMEDIC_COMMAND --config ./pr/$PLATFORM --plugin $PARAMEDIC_PLUGIN_TO_TEST --buildName $PARAMEDIC_BUILDNAME;
117
118
fi
0 commit comments