-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
executable file
·59 lines (51 loc) · 1.24 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
59
# language used
language: android
# jkd version
jdk: oraclejdk8
# global variables used in this file
env:
global:
# target of development
- ANDROID_TARGET=android-23
# emulator version
- ANDROID_ABI=armeabi-v7a
# android version
- ANDROID_VERSION=23
# android tools used
- ANDROID_BUILD_TOOLS=build-tools-23.0.3
# Timeout for ADB
- ADB_INSTALL_TIMEOUT=8
# components used to build
android:
components:
- extra-android-m2repository
- extra-android-support
- platform-tools
- tools
- build-tools-23.0.3
- android-23
- sys-img-armeabi-v7a-android-23
- sys-img-x86-android-23
# to give execute permission
before_script:
- chmod 777 gradlew
# for caching
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
before_script:
# unit testing
- ./gradlew test
# starting the emulator
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
- emulator -avd test -no-skin -no-audio -no-window &
- android-wait-for-emulator
- adb shell setprop dalvik.vm.dexopt-flags v=n,o=v
script:
# instrumental test
- ./gradlew connectedCheck
after_success:
- echo "oh fischi"