forked from Tencent/APIJSON
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
28 lines (28 loc) · 830 Bytes
/
.travis.yml
File metadata and controls
28 lines (28 loc) · 830 Bytes
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
language: android
sudo: false
jdk:
- oraclejdk7
android:
components:
- build-tools-23.0.2
- android-21
- extra-android-m2repository
- extra-android-support
before_install:
- export CHROME_BIN=chromium-browser
- export JAVA_HOME=/usr/lib/jvm/java-7-oraclejdk7-amd64
- export ANDROID_HOME=/usr/local/android-sdk
- echo yes | android update sdk --all --no-ui --force
- export DISPLAY=:99.0
- sh -e /etc/init.d/apijson start
before_script:
- . $HOME/.nvm/nvm.sh
- nvm install 4
- nvm use 4
- npm install
- echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
- emulator -avd test -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
script: "make test"
after_script: "npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"