Skip to content

Commit ea24d30

Browse files
committed
adjust travis
1 parent 1062a1d commit ea24d30

File tree

1 file changed

+48
-35
lines changed

1 file changed

+48
-35
lines changed

.travis.yml

Lines changed: 48 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,78 @@
1-
branches:
2-
only:
3-
- master
1+
android:
2+
components:
3+
- tools
4+
- platform-tools
5+
- build-tools-25.0.2
6+
- android-25
7+
- extra-android-m2repository
8+
- sys-img-armeabi-v7a-android-21
9+
10+
before_cache:
11+
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
12+
13+
cache:
14+
directories:
15+
- .nvm
16+
- $HOME/.gradle/caches/
17+
- $HOME/.gradle/wrapper/
18+
19+
install:
20+
- echo no | npm install -g nativescript
21+
- tns usage-reporting disable
22+
- tns error-reporting disable
23+
- npm install
24+
- cd src
25+
- npm run setup
26+
27+
script:
28+
29+
430
matrix:
531
include:
6-
- stage: "Lint"
32+
- stage: "Lint"
733
language: node_js
834
os: linux
935
node_js: "6"
1036
script: "npm run ci.tslint"
11-
- stage: "WebPack"
37+
- stage: "WebPack"
1238
os: osx
1339
env:
14-
- Platform="iOS"
40+
- Webpack="iOS"
1541
osx_image: xcode8.3
1642
language: node_js
1743
node_js: "6"
1844
jdk: oraclejdk8
19-
script: cd demo && npm run build.plugin && npm i && npm run build-ios-bundle && cd ../demo-angular && npm run build.plugin && npm i && npm run build-ios-bundle
45+
before_install:
46+
- gem install cocoapods
47+
- pod repo update
48+
script: cd ../demo && npm run build-ios-bundle
2049
- language: android
2150
os: linux
2251
env:
23-
- Platform="Android"
52+
- Webpack="Android"
2453
jdk: oraclejdk8
2554
before_install: nvm install 6.10.3
26-
script: cd demo && npm run build.plugin && npm i && npm run build-android-bundle && cd ../demo-angular && npm run build.plugin && npm i && npm run build-android-bundle
55+
script: cd ../demo && npm run build-android-bundle
2756
- stage: "Build"
2857
env:
29-
- Android="25"
58+
- BuildAndroid="25"
3059
language: android
3160
os: linux
3261
jdk: oraclejdk8
3362
before_install: nvm install 6.10.3
34-
script: cd demo && npm run ci.android.build && cd ../demo-angular && npm run ci.android.build
63+
script:
64+
- cd ../demo && tns build android
3565
- os: osx
3666
env:
37-
- iOS="10.3"
67+
- BuildiOS="10.3"
3868
- Xcode="8.3"
3969
osx_image: xcode8.3
4070
language: node_js
4171
node_js: "6"
4272
jdk: oraclejdk8
43-
script: cd demo && npm run ci.ios.build && cd ../demo-angular && npm run ci.ios.build
44-
45-
android:
46-
components:
47-
- tools
48-
- platform-tools
49-
- build-tools-25.0.2
50-
- android-25
51-
- extra-android-m2repository
52-
53-
before_cache:
54-
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
55-
56-
cache:
57-
directories:
58-
- .nvm
59-
- $HOME/.gradle/caches/
60-
- $HOME/.gradle/wrapper/
61-
62-
install:
63-
- echo no | npm install -g nativescript
64-
- tns usage-reporting disable
65-
- tns error-reporting disable
73+
before_install:
74+
- gem install cocoapods
75+
- pod repo update
76+
script:
77+
- cd ../demo && tns build ios
78+

0 commit comments

Comments
 (0)