forked from card-io/card.io-Android-source
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (34 loc) · 1.1 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
sudo: true
addons:
apt:
packages:
- p7zip-full
language: android
jdk: oraclejdk8
android:
components:
- tools
- tools
- android-25
- android-22
- sys-img-armeabi-v7a-android-22
- build-tools-25.0.2
- platform-tools
- extra-android-support
- extra-android-m2repository
- extra-google-m2repository
before_install:
- export ANDROID_HOME=/usr/local/android-sdk
- wget https://dl.google.com/android/repository/android-ndk-r13b-linux-x86_64.zip -O ndk.bin
- 7z x ndk.bin > /dev/null
- export ANDROID_NDK_HOME=`pwd`/android-ndk-r13b
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools:${ANDROID_NDK_HOME}
- echo "sdk.dir=$ANDROID_HOME" > local.properties
- echo "ndk.dir=$ANDROID_NDK_HOME" >> local.properties
before_script:
- echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a
- emulator -avd test -camera-back emulated -skin WXGA720 -no-audio -no-window &
- android-wait-for-emulator
- sleep 60
- adb shell input keyevent 82
script: ./gradlew clean test connectedAndroidTest :card.io:assembleRelease javadoc