mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-01-31 12:42:50 +08:00
ci: updates Node.js versions (#576)
This commit is contained in:
parent
6f25420ce7
commit
f33ade83e4
@ -12,12 +12,16 @@ image:
|
|||||||
- Visual Studio 2017
|
- Visual Studio 2017
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
nodejs_version: "6"
|
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
- PLATFORM: windows-10-store
|
- nodejs_version: "10"
|
||||||
|
- nodejs_version: "12"
|
||||||
|
|
||||||
|
platform:
|
||||||
|
- x86
|
||||||
|
- x64
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
- ps: Install-Product node $env:nodejs_version
|
||||||
- node --version
|
- node --version
|
||||||
- npm install -g github:apache/cordova-paramedic
|
- npm install -g github:apache/cordova-paramedic
|
||||||
- npm install -g cordova
|
- npm install -g cordova
|
||||||
@ -25,4 +29,4 @@ install:
|
|||||||
build: off
|
build: off
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- cordova-paramedic --config pr\%PLATFORM% --plugin . --justBuild
|
- cordova-paramedic --config pr\windows-10-store --plugin . --justBuild
|
||||||
|
27
.travis.yml
27
.travis.yml
@ -1,4 +1,4 @@
|
|||||||
# This Travis configuration file is built after a Cordova Paramedic
|
# This Travis configuration file is built after a Cordova Paramedic
|
||||||
# specific template with minimal modifications and adaptations:
|
# specific template with minimal modifications and adaptations:
|
||||||
# https://github.com/apache/cordova-paramedic/blob/master/.travis.yml
|
# https://github.com/apache/cordova-paramedic/blob/master/.travis.yml
|
||||||
|
|
||||||
@ -12,18 +12,18 @@ addons:
|
|||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- SAUCE_USERNAME=snay
|
- SAUCE_USERNAME=snay
|
||||||
- TRAVIS_NODE_VERSION=8
|
- TRAVIS_NODE_VERSION=12
|
||||||
- ANDROID_API_LEVEL=28
|
- ANDROID_API_LEVEL=28
|
||||||
- ANDROID_BUILD_TOOLS_VERSION=28.0.3
|
- ANDROID_BUILD_TOOLS_VERSION=28.0.3
|
||||||
|
|
||||||
language: node_js
|
language: node_js
|
||||||
node_js: 8
|
node_js: 12
|
||||||
|
|
||||||
# yaml anchor/alias: https://medium.com/@tommyvn/travis-yml-dry-with-anchors-8b6a3ac1b027
|
# yaml anchor/alias: https://medium.com/@tommyvn/travis-yml-dry-with-anchors-8b6a3ac1b027
|
||||||
|
|
||||||
_ios: &_ios
|
_ios: &_ios
|
||||||
os: osx
|
os: osx
|
||||||
osx_image: xcode10.2
|
osx_image: xcode10.3
|
||||||
|
|
||||||
_android: &_android
|
_android: &_android
|
||||||
language: android
|
language: android
|
||||||
@ -35,9 +35,9 @@ _android: &_android
|
|||||||
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
|
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
|
||||||
- android-$ANDROID_API_LEVEL
|
- android-$ANDROID_API_LEVEL
|
||||||
licenses:
|
licenses:
|
||||||
- 'android-sdk-preview-license-.+'
|
- "android-sdk-preview-license-.+"
|
||||||
- 'android-sdk-license-.+'
|
- "android-sdk-license-.+"
|
||||||
- 'google-gdk-license-.+'
|
- "google-gdk-license-.+"
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
@ -81,13 +81,13 @@ matrix:
|
|||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
# manually install Node for `language: android`
|
# 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
|
- node --version
|
||||||
- if [[ "$PLATFORM" =~ android ]]; then gradle --version; fi
|
- if [[ "$PLATFORM" =~ android ]]; then gradle --version; fi
|
||||||
- if [[ "$PLATFORM" =~ ios ]]; then npm install -g ios-deploy; fi
|
- if [[ "$PLATFORM" =~ ios ]]; then npm install -g ios-deploy; fi
|
||||||
- npm install -g cordova
|
- npm install -g cordova
|
||||||
# install paramedic if not running on paramedic repo
|
# 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:
|
install:
|
||||||
- npm install
|
- npm install
|
||||||
@ -106,11 +106,12 @@ before_script:
|
|||||||
PARAMEDIC_COMMAND="cordova-paramedic"
|
PARAMEDIC_COMMAND="cordova-paramedic"
|
||||||
fi
|
fi
|
||||||
- PARAMEDIC_BUILDNAME=travis-$TRAVIS_REPO_SLUG-$TRAVIS_JOB_NUMBER
|
- PARAMEDIC_BUILDNAME=travis-$TRAVIS_REPO_SLUG-$TRAVIS_JOB_NUMBER
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- $TEST_COMMAND
|
- $TEST_COMMAND
|
||||||
- if [[ "$ADDITIONAL_TESTS_DIR" != "" ]];
|
- |
|
||||||
|
if [[ "$ADDITIONAL_TESTS_DIR" != "" ]];
|
||||||
then cd $ADDITIONAL_TESTS_DIR && npm install && npm test;
|
then cd $ADDITIONAL_TESTS_DIR && npm install && npm test;
|
||||||
else
|
else
|
||||||
$PARAMEDIC_COMMAND --config ./pr/$PLATFORM --plugin $PARAMEDIC_PLUGIN_TO_TEST --buildName $PARAMEDIC_BUILDNAME;
|
$PARAMEDIC_COMMAND --config ./pr/$PLATFORM --plugin $PARAMEDIC_PLUGIN_TO_TEST --buildName $PARAMEDIC_BUILDNAME;
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user