2016-03-01 15:11:09 +08:00
sudo : false
2019-03-04 21:37:36 +08:00
2017-06-27 13:11:35 +08:00
addons :
jwt :
secure : iFkpgKg4VvsMDC/5MSUGZAOM+vVMWqLPK6qgwdMFvCym+eySk0LKRUi9BmgFMyy9qDGVlg8Sqkgg8ElbdjJbai5m2N/0e1MW2YqSGAvJx1FkWp8uaVDmkBCXO+VKOCQmujyxi6RbUPvMhUI5kzjMuKu0pi8QYg/bqLbdBR2TRis=
env :
global :
2019-03-04 21:37:36 +08:00
- SAUCE_USERNAME=snay
- TRAVIS_NODE_VERSION=6
language : node_js
node_js : 6
2017-06-27 13:11:35 +08:00
matrix :
include :
2019-03-04 21:37:36 +08:00
- env : PLATFORM=browser-chrome
- env : PLATFORM=browser-firefox
- env : PLATFORM=browser-safari
- env : PLATFORM=browser-edge
- env : PLATFORM=ios-9.3
os : osx
osx_image : xcode7.3
- env : PLATFORM=ios-10.0
os : osx
osx_image : xcode7.3
- env : PLATFORM=android-4.4
os : linux
language : android
jdk : oraclejdk8
android :
components :
- tools
- build-tools-26.0.2
- env : PLATFORM=android-5.1
os : linux
language : android
jdk : oraclejdk8
android :
components :
- tools
- build-tools-26.0.2
- env : PLATFORM=android-6.0
os : linux
language : android
jdk : oraclejdk8
android :
components :
- tools
- build-tools-26.0.2
- env : PLATFORM=android-7.0
os : linux
language : android
jdk : oraclejdk8
android :
components :
- tools
- build-tools-26.0.2
2017-06-27 13:11:35 +08:00
before_install :
2019-03-04 21:37:36 +08:00
# `language: android` has no Node.js installed, therefore we need to install it manually
- 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
2019-04-09 14:12:49 +08:00
- if [[ "$PLATFORM" =~ android ]]; then echo y | android update sdk -u --filter android-22,android-23,android-24,android-25,android-26,android-27,android-28; fi
2019-03-04 21:37:36 +08:00
- npm install -g cordova-paramedic@https://github.com/apache/cordova-paramedic.git
- npm install -g cordova
2017-06-27 13:11:35 +08:00
install :
2019-03-04 21:37:36 +08:00
- npm install
2017-06-27 13:11:35 +08:00
script :
2019-03-04 21:37:36 +08:00
- npm test
- cordova-paramedic --config pr/$PLATFORM --plugin $TRAVIS_BUILD_DIR --shouldUseSauce --buildName travis-$TRAVIS_REPO_SLUG-$TRAVIS_JOB_NUMBER