forked from justindujardin/nativescript-angular
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
95 lines (90 loc) · 2.44 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
env:
global:
- NODE_VERSION=8.9.0
- EMULATOR_API_LEVEL=22
- ANDROID_VERSION=25
- ANDROID_BUILD_TOOLS_VERSION=25.0.2
- ANDROID_ABI=armeabi-v7a
- APPIUM_VERSION=1.7.0
- EMULATOR_NAME=test
- ANDROID_TAG=google_apis
matrix:
include:
- stage: "Lint"
language: node_js
os: linux
node_js: "6"
script:
- cd nativescript-angular
- npm install
- npm run tslint
- stage: "Build"
os: osx
env:
- Build="iOS"
osx_image: xcode8.3
language: node_js
node_js: "8"
jdk: oraclejdk8
before_install:
- cd nativescript-angular
- npm install
- npm run ngc
- cd ..
script:
- tns build ios
- cd tests
- npm install
- language: android
os: linux
env:
- Build="Android"
jdk: oraclejdk8
before_install:
- echo no | android create avd --force -n $EMULATOR_NAME -t "android-"$EMULATOR_API_LEVEL --abi $ANDROID_ABI --tag $ANDROID_TAG -c 12M
- QEMU_AUDIO_DRV=none emulator -avd $EMULATOR_NAME -no-window &
- nvm install $NODE_VERSION
- cd nativescript-angular
- npm install
- npm run ngc
- cd ..
- android-wait-for-emulator
- adb shell input keyevent 82 &
script:
- tns build android
- cd tests
- npm install
android:
components:
- tools
- platform-tools
- build-tools-25.0.2
- android-25
- android-$EMULATOR_API_LEVEL
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- addon-google_apis-google-25
# Specify at least one system image,
# if you need to run emulator(s) during your tests
- sys-img-armeabi-v7a-android-26
- sys-img-armeabi-v7a-android-25
- sys-img-armeabi-v7a-android-17
- sys-img-armeabi-v7a-android-19
- sys-img-armeabi-v7a-google_apis-$EMULATOR_API_LEVEL
licenses:
- ".+"
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- .nvm
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
install:
- nvm install $NODE_VERSION
- npm install -g typings
- wget -O ./nativescript.tgz "https://s3.amazonaws.com/nativescript-ci/build_result/nativescript.tgz"
- npm install -g nativescript.tgz --ignore-scripts
- tns usage-reporting disable
- tns error-reporting disable