Skip to content

Commit 7a856be

Browse files
authored
ci: updates Node.js versions (apache#659)
1 parent 4129f11 commit 7a856be

File tree

2 files changed

+22
-18
lines changed

2 files changed

+22
-18
lines changed

.appveyor.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@ 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
@@ -26,5 +30,4 @@ install:
2630
build: off
2731

2832
test_script:
29-
- npm run eslint
30-
- cordova-paramedic --config pr\%PLATFORM% --plugin . %JUST_BUILD%
33+
- cordova-paramedic --config pr\windows-10-store --plugin . --justBuild

.travis.yml

Lines changed: 13 additions & 12 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:
@@ -75,13 +75,13 @@ matrix:
7575

7676
before_install:
7777
# 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
7979
- node --version
8080
- if [[ "$PLATFORM" =~ android ]]; then gradle --version; fi
8181
- if [[ "$PLATFORM" =~ ios ]]; then npm install -g ios-deploy; fi
8282
- npm install -g cordova
8383
# 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
8585

8686
install:
8787
- npm install
@@ -110,8 +110,9 @@ before_script:
110110
echo "PARAMEDIC_BUILDNAME=$PARAMEDIC_BUILDNAME"
111111
script:
112112
- $TEST_COMMAND
113-
- if [[ "$ADDITIONAL_TESTS_DIR" != "" ]]; then
113+
- |
114+
if [[ "$ADDITIONAL_TESTS_DIR" != "" ]]; then
114115
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;
117118
fi

0 commit comments

Comments
 (0)