You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ti...@apache.org on 2020/03/28 13:38:07 UTC

[cordova-paramedic] 01/01: ci: updates Node.js versions

This is an automated email from the ASF dual-hosted git repository.

timbru31 pushed a commit to branch feat/updates-node-in-ci
in repository https://gitbox.apache.org/repos/asf/cordova-paramedic.git

commit 7f4e39322a226dac8e8eb2d4cf3a3469c6ea5393
Author: Tim Brust <gi...@timbrust.de>
AuthorDate: Sat Mar 28 14:37:51 2020 +0100

    ci: updates Node.js versions
---
 .travis.yml  | 17 +++++++++--------
 appveyor.yml | 17 +++++++++++++----
 2 files changed, 22 insertions(+), 12 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 5ddd596..20b080d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -19,7 +19,7 @@ node_js: 12
 
 _ios: &_ios
   os: osx
-  osx_image: xcode10.2
+  osx_image: xcode10.3
 
 _android: &_android
   language: android
@@ -31,16 +31,16 @@ _android: &_android
       - build-tools-$ANDROID_BUILD_TOOLS_VERSION
       - android-$ANDROID_API_LEVEL
     licenses:
-      - 'android-sdk-preview-license-.+'
-      - 'android-sdk-license-.+'
-      - 'google-gdk-license-.+'
+      - "android-sdk-preview-license-.+"
+      - "android-sdk-license-.+"
+      - "google-gdk-license-.+"
 
 matrix:
   include:
     # additional `npm test` in directory
     - env: ADDITIONAL_TESTS_DIR=./spec/testable-plugin/tests/foo
       <<: *_ios
-    
+
     # local tests, without saucelabs
     - env: PLATFORM=local/browser
       <<: *_ios
@@ -77,13 +77,13 @@ matrix:
 
 before_install:
   # manually install Node for `language: android`
-  - if [[ "$PLATFORM" =~ android ]]; then nvm install $TRAVIS_NODE_VERSION; fi 
+  - if [[ "$PLATFORM" =~ android ]]; then nvm install $TRAVIS_NODE_VERSION; fi
   - node --version
   - if [[ "$PLATFORM" =~ android ]]; then gradle --version; fi
   - if [[ "$PLATFORM" =~ ios ]]; then npm install -g ios-deploy; fi
   - npm install -g cordova
   # install paramedic if not running on paramedic repo
-  - if ! [[ "$TRAVIS_REPO_SLUG" =~ cordova-paramedic ]]; then npm install -g github:apache/cordova-paramedic; fi 
+  - if ! [[ "$TRAVIS_REPO_SLUG" =~ cordova-paramedic ]]; then npm install -g github:apache/cordova-paramedic; fi
 
 install:
   - npm install
@@ -113,7 +113,8 @@ before_script:
 
 script:
   - $TEST_COMMAND
-  - if [[ "$ADDITIONAL_TESTS_DIR" != "" ]]; then
+  - |
+    if [[ "$ADDITIONAL_TESTS_DIR" != "" ]]; then
       cd $ADDITIONAL_TESTS_DIR && npm install && npm test;
     else 
       $PARAMEDIC_COMMAND --config ./pr/$PLATFORM --plugin $PARAMEDIC_PLUGIN_TO_TEST --buildName $PARAMEDIC_BUILDNAME; 
diff --git a/appveyor.yml b/appveyor.yml
index e4e7a1c..ac23171 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,14 +1,23 @@
 # appveyor file
 # http://www.appveyor.com/docs/appveyor-yml
 
+environment:
+  matrix:
+    - nodejs_version: "10"
+    - nodejs_version: "12"
+
+platform:
+  - x86
+  - x64
+
 install:
-  - npm install cordova
+  - ps: Install-Product node $env:nodejs_version
+  - node --version
+  - npm install -g cordova
   - npm install
   - npm link
 
 build: off
 
 test_script:
-  - node --version
-  - npm --version
-  - npm run test-appveyor
\ No newline at end of file
+  - npm run test-appveyor


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org