forked from appium/appium-adb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (49 loc) · 1.33 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
language: android
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
- ANDROID_AVD=test
- PLATFORM_VERSION=5.0.2
matrix:
- TEST=unit START_EMU=0
- TEST=functional RECURSIVE=--recursive
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 -g gulp
- npm install -g mocha
- npm install
# make sure emulator started
- $(npm bin)/android-emu-travis-post
script:
- gulp eslint && mocha -t 900000 -R spec $RECURSIVE build/test/$TEST
after_success:
- gulp coveralls