Skip to content

Commit bd4d637

Browse files
committed
CB-12935: (ios, android) Enable paramedic builds on Travis CI
1 parent a3eaa67 commit bd4d637

File tree

1 file changed

+70
-3
lines changed

1 file changed

+70
-3
lines changed

.travis.yml

Lines changed: 70 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,71 @@
1-
language: node_js
21
sudo: false
3-
node_js:
4-
- "4.2"
2+
addons:
3+
jwt:
4+
secure: M4uBGUMbanDtCBrNktJhEwNSLL0UsOV3IoINqW3GRupX7Mr13MBZzsORm4HVbdbPxQ6Bf2LhyJ/fabQRsOoJrCokgWwfKkigztQcMFeLNao9liBRA6kuQOh5/rdfoULpu96GvlYzB4ddgSBSSGQW3DesaKC/BpTXnvQ4OnXo5e4=
5+
env:
6+
global:
7+
- SAUCE_USERNAME=snay
8+
- TRAVIS_NODE_VERSION="4.2"
9+
matrix:
10+
include:
11+
- env: PLATFORM=ios-9.3
12+
os: osx
13+
osx_image: xcode7.3
14+
language: node_js
15+
node_js: '4.2'
16+
- env: PLATFORM=ios-10.0
17+
os: osx
18+
osx_image: xcode7.3
19+
language: node_js
20+
node_js: '4.2'
21+
- env: PLATFORM=android-4.4
22+
os: linux
23+
language: android
24+
jdk: oraclejdk8
25+
android:
26+
components:
27+
- tools
28+
- tools
29+
- env: PLATFORM=android-5.1
30+
os: linux
31+
language: android
32+
jdk: oraclejdk8
33+
android:
34+
components:
35+
- tools
36+
- tools
37+
- env: PLATFORM=android-6.0
38+
os: linux
39+
language: android
40+
jdk: oraclejdk8
41+
android:
42+
components:
43+
- tools
44+
- tools
45+
- env: PLATFORM=android-7.0
46+
os: linux
47+
language: android
48+
jdk: oraclejdk8
49+
android:
50+
components:
51+
- tools
52+
- tools
53+
before_install:
54+
- npm cache clean -f
55+
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm
56+
&& git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm
57+
install $TRAVIS_NODE_VERSION
58+
- node --version
59+
- if [[ "$PLATFORM" =~ android ]]; then gradle --version; fi
60+
- if [[ "$PLATFORM" =~ ios ]]; then npm install -g ios-deploy; fi
61+
- if [[ "$PLATFORM" =~ android ]]; then echo y | android update sdk -u --filter android-22,android-23,android-24,android-25;
62+
fi
63+
- git clone https://github.com/apache/cordova-paramedic /tmp/paramedic && pushd /tmp/paramedic
64+
&& npm install && popd
65+
- npm install -g cordova
66+
install:
67+
- npm install
68+
script:
69+
- npm test
70+
- node /tmp/paramedic/main.js --config pr/$PLATFORM --plugin $(pwd) --shouldUseSauce
71+
--buildName travis-plugin-media-$TRAVIS_JOB_NUMBER

0 commit comments

Comments
 (0)