Skip to content

Commit 94503df

Browse files
authored
ci: updates Node.js versions (#274)
1 parent a977b9b commit 94503df

File tree

2 files changed

+20
-16
lines changed

2 files changed

+20
-16
lines changed

.appveyor.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,21 @@ image:
1212
- Visual Studio 2017
1313

1414
environment:
15-
nodejs_version: "4"
1615
matrix:
17-
- PLATFORM: windows-10-store
18-
JUST_BUILD: --justBuild
16+
- nodejs_version: "10"
17+
- nodejs_version: "12"
18+
19+
platform:
20+
- x86
21+
- x64
22+
1923
install:
20-
- npm cache clean -f
24+
- ps: Install-Product node $env:nodejs_version
2125
- node --version
2226
- npm install -g cordova-paramedic@https://github.com/apache/cordova-paramedic.git
2327
- npm install -g cordova
2428

2529
build: off
2630

2731
test_script:
28-
- cordova-paramedic --config pr\%PLATFORM% --plugin . %JUST_BUILD%
32+
- cordova-paramedic --config pr\windows-10-store --plugin . --justBuild

.travis.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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:
1212
env:
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

1919
language: 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

4242
matrix:
4343
include:
@@ -70,13 +70,13 @@ matrix:
7070

7171
before_install:
7272
# 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
7474
- node --version
7575
- if [[ "$PLATFORM" =~ android ]]; then gradle --version; fi
7676
- if [[ "$PLATFORM" =~ ios ]]; then npm install -g ios-deploy; fi
7777
- npm install -g cordova
7878
# 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
8080

8181
install:
8282
- npm install
@@ -105,9 +105,9 @@ before_script:
105105
echo "PARAMEDIC_BUILDNAME=$PARAMEDIC_BUILDNAME"
106106
script:
107107
- $TEST_COMMAND
108-
- if [[ "$ADDITIONAL_TESTS_DIR" != "" ]]; then
108+
- |
109+
if [[ "$ADDITIONAL_TESTS_DIR" != "" ]]; then
109110
cd $ADDITIONAL_TESTS_DIR && npm install && npm test;
110111
else
111112
$PARAMEDIC_COMMAND --config ./pr/$PLATFORM --plugin $PARAMEDIC_PLUGIN_TO_TEST --buildName $PARAMEDIC_BUILDNAME;
112113
fi
113-

0 commit comments

Comments
 (0)