-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
58 lines (53 loc) · 1.39 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
language: android
dist: precise
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
android:
components:
# use the latest revision of Android SDK Tools
- platform-tools
- tools
# Additional components
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- addon-google_apis-google-19
# Specify at least one system image,
# if you need to run emulator(s) during your tests
- sys-img-armeabi-v7a-android-22
env:
global:
- _FORCE_LOGS=1
- DEVICE=android
- MOCHA_TIMEOUT=360000
- RECURSIVE=
- START_EMU=1
- ANDROID_EMU_NAME=test
- ANDROID_EMU_TARGET=android-21
- ANDROID_EMU_ABI=armeabi-v7a
- CC=gcc-4.9 CXX=g++-4.9
matrix:
- TEST=unit RECURSIVE=--recursive START_EMU=0
- TEST=functional
before_script:
# node stuff
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
- nvm install 6
- node --version
- npm --version
- npm install appium-test-support # get the travis emu scripts
# android stuff
- android list targets
- $(npm bin)/android-emu-travis-pre
# npm stuff
- npm install
# make sure emulator started
- $(npm bin)/android-emu-travis-post
script:
- npm run lint && npm run mocha -- -t $MOCHA_TIMEOUT $RECURSIVE build/test/$TEST -g @skip-ci -i
after_success:
- npm run coverage