forked from NativeScript/nativescript-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (48 loc) · 1.31 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
env:
global:
- NODE_VERSION=6.11.1
- EMULATOR_API_LEVEL=19
- ANDROID_VERSION=23
- ANDROID_BUILD_TOOLS_VERSION=23.0.1
- ANDROID_ABI=armeabi-v7a
- ANDROID_TAG=google_apis
- APPIUM_VERSION=1.6.5
language: android
jdk:
- oraclejdk8
android:
components:
- platform-tools
- tools
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
- android-$ANDROID_VERSION
- android-$EMULATOR_API_LEVEL
- extra-android-m2repository
- sys-img-armeabi-v7a-android-$EMULATOR_API_LEVEL
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- "$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
- cd nativescript-angular
- npm install
- npm run tslint
- cd ../tests
- npm install
- npm i appium@$APPIUM_VERSION
before_script:
- echo no | android create avd --force -n test -t android-$EMULATOR_API_LEVEL --abi $ANDROID_ABI
- emulator -memory 1024 -avd test -no-audio -no-window &
- android-wait-for-emulator
script:
- tns build android
- android-wait-for-emulator
- npm run appium --runtype=android19 --appium=$APPIUM_VERSION