forked from fossasia/open-event-droidgen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (42 loc) · 1.41 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
language: android
sudo: false
jdk: oraclejdk7
env:
matrix:
- ADB_INSTALL_TIMEOUT=8 ANDROID_BUILD_TOOLS_VERSION=22.0.1 ANDROID_TARGET=android-22 ANDROID_ABI=armeabi-v7a
cache:
directories:
- ${TRAVIS_BUILD_DIR}/gradle/caches/
- ${TRAVIS_BUILD_DIR}/gradle/wrapper/dists/
android:
components:
- platform-tools
- tools
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
- $ANDROID_TARGET
# Need 22 for compilation
- android-23
# Google Play Services
- extra-google-google_play_services
# Support library
- extra-android-support
# Latest artifacts in local repository
- extra-google-m2repository
- extra-android-m2repository
# Specify at least one system image,
- sys-img-armeabi-v7a-$ANDROID_TARGET
before_script:
# Create and start 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 input keyevent 82 &
script: ./gradlew :app:connectedAndroidTest :app:coveralls
# Gitter Integration via Webhook (https://gitter.im/fossasia/open-event-android)
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/bbf7c28d708af7ae5ac6
on_success: always # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false