Skip to content

Commit cc74946

Browse files
committed
fix: travis build
- Do not longer build with node@6 - Use build-tools-27.03 - Use Api23 emulator
1 parent 549f8f3 commit cc74946

File tree

1 file changed

+2
-50
lines changed

1 file changed

+2
-50
lines changed

Diff for: .travis.yml

+2-50
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
env:
22
global:
3-
- NODE_VERSION=6
43
- NODE_VERSION=8
5-
- EMULATOR_API_LEVEL=22
4+
- EMULATOR_API_LEVEL=23
65
- ANDROID_VERSION=25
7-
- ANDROID_BUILD_TOOLS_VERSION=26.0.2
6+
- ANDROID_BUILD_TOOLS_VERSION=27.0.3
87
- ANDROID_ABI=armeabi-v7a
98
- APPIUM_VERSION=1.7.0
109
- EMULATOR_NAME=test
@@ -23,24 +22,6 @@ matrix:
2322
- npm run tslint
2423
- stage: "Build"
2524
os: osx
26-
env:
27-
- Build="iOS"
28-
osx_image: xcode9.3
29-
language: node_js
30-
node_js: "6"
31-
jdk: oraclejdk8
32-
before_install:
33-
- cd nativescript-angular
34-
- npm install
35-
- cd ../tests
36-
- npm install
37-
- cd ..
38-
script:
39-
- cd nativescript-angular
40-
- npm run ngc
41-
- cd ../tests
42-
- tns build ios
43-
- os: osx
4425
env:
4526
- Build="iOS"
4627
osx_image: xcode9.3
@@ -58,28 +39,6 @@ matrix:
5839
- npm run ngc
5940
- cd ../tests
6041
- tns build ios
61-
- language: android
62-
node_js: "6"
63-
os: linux
64-
env:
65-
- Build="Android"
66-
jdk: oraclejdk8
67-
before_install:
68-
- echo no | android create avd --force -n $EMULATOR_NAME -t "android-"$EMULATOR_API_LEVEL --abi $ANDROID_ABI --tag $ANDROID_TAG -c 12M
69-
- QEMU_AUDIO_DRV=none emulator -avd $EMULATOR_NAME -no-window &
70-
- nvm install $NODE_VERSION
71-
- cd nativescript-angular
72-
- npm install
73-
- cd ../tests
74-
- npm install
75-
- cd ..
76-
- android-wait-for-emulator
77-
- adb shell input keyevent 82 &
78-
script:
79-
- cd nativescript-angular
80-
- npm run ngc
81-
- cd ../tests
82-
- tns build android
8342
- language: android
8443
node_js: "8"
8544
os: linux
@@ -107,20 +66,13 @@ android:
10766
components:
10867
- tools
10968
- platform-tools
110-
- build-tools-25.0.2
11169
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
112-
- android-25
11370
- android-$EMULATOR_API_LEVEL
11471
- extra-google-google_play_services
11572
- extra-google-m2repository
11673
- extra-android-m2repository
117-
- addon-google_apis-google-25
11874
# Specify at least one system image,
11975
# if you need to run emulator(s) during your tests
120-
- sys-img-armeabi-v7a-android-26
121-
- sys-img-armeabi-v7a-android-25
122-
- sys-img-armeabi-v7a-android-17
123-
- sys-img-armeabi-v7a-android-19
12476
- sys-img-armeabi-v7a-google_apis-$EMULATOR_API_LEVEL
12577
licenses:
12678
- ".+"

0 commit comments

Comments
 (0)