Skip to content

Commit dd1c88b

Browse files
committed
new travis
1 parent 0f71029 commit dd1c88b

File tree

1 file changed

+33
-39
lines changed

1 file changed

+33
-39
lines changed

.travis.yml

Lines changed: 33 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -8,51 +8,39 @@ matrix:
88
os: linux
99
node_js: "6"
1010
script: cd src && npm run ci.tslint && cd ../demo && npm run ci.tslint
11-
- stage: "Build and Test"
11+
- stage: "WebPack"
12+
os: osx
13+
env:
14+
- Platform="iOS"
15+
osx_image: xcode8.3
16+
language: node_js
17+
node_js: "6"
18+
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
20+
- language: android
21+
os: linux
22+
env:
23+
- Platform="Android"
24+
jdk: oraclejdk8
25+
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
27+
- stage: "Build"
1228
env:
13-
- BuildAndroid="25"
29+
- Android="25"
1430
language: android
1531
os: linux
1632
jdk: oraclejdk8
17-
before_install: nvm install stable
18-
script:
19-
- cd src && npm i && npm run tsc && cd ../demo
20-
- travis_wait travis_retry tns build android
33+
before_install: nvm install 6.10.3
34+
script: cd demo && npm run ci.android.build && cd ../demo-angular && npm run ci.android.build
2135
- os: osx
2236
env:
23-
- BuildiOS="10.3"
37+
- iOS="10.3"
2438
- Xcode="8.3"
2539
osx_image: xcode8.3
2640
language: node_js
2741
node_js: "6"
2842
jdk: oraclejdk8
29-
script:
30-
- cd src && npm i && npm run tsc && cd ../demo
31-
- travis_wait travis_retry tns build ios
32-
- os: linux
33-
language: android
34-
env:
35-
- TestVersion="latest"
36-
jdk: oraclejdk8
37-
before_install:
38-
- nvm install stable
39-
before_script:
40-
- cd seed-tests && npm i
41-
- echo no | android create avd --force -n test -t android-21 -b armeabi-v7a
42-
- emulator -avd test -no-audio -no-window &
43-
- android-wait-for-emulator
44-
script: travis_wait travis_retry npm run test.android
45-
dist: precise
46-
- os: osx
47-
env:
48-
- TestVersion="latest"
49-
language: node_js
50-
node_js: "6"
51-
jdk: oraclejdk8
52-
osx_image: xcode8.3
53-
before_script:
54-
- cd seed-tests && npm i
55-
script: travis_wait travis_retry npm run test.ios
43+
script: cd demo && npm run ci.ios.build && cd ../demo-angular && npm run ci.ios.build
5644

5745
android:
5846
components:
@@ -61,11 +49,17 @@ android:
6149
- build-tools-25.0.2
6250
- android-25
6351
- extra-android-m2repository
64-
- sys-img-armeabi-v7a-android-21
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/
6561

6662
install:
67-
- npm install -g nativescript
68-
- npm install -g tslint
63+
- echo no | npm install -g nativescript
6964
- tns usage-reporting disable
70-
- tns error-reporting disable
71-
65+
- tns error-reporting disable

0 commit comments

Comments
 (0)