forked from card-io/card.io-Android-source
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
42 lines (42 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
sudo: true
# blocklist
branches:
except:
- master
addons:
apt:
packages:
- p7zip-full
language: android
jdk: oraclejdk8
android:
components:
- tools
- platform-tools
- build-tools-27.0.3
- android-27
- android-22
- sys-img-armeabi-v7a-android-22
- extra-android-support
- extra-android-m2repository
- extra-google-m2repository
licenses:
- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
before_install:
- yes | sdkmanager "platforms;android-27"
- export ANDROID_HOME=/usr/local/android-sdk
- wget https://dl.google.com/android/repository/android-ndk-r16b-linux-x86_64.zip -O ndk.bin
- 7z x ndk.bin > /dev/null
- export ANDROID_NDK_HOME=`pwd`/android-ndk-r16b
- 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 :card.io:test :card.io:connectedAndroidTest :card.io:assembleRelease :card.io:javadoc