-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
57 lines (51 loc) · 1.76 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
language: android
jdk: oraclejdk8
# Turn off caching to avoid any caching problems
cache: false
# Use the Travis Container-Based Infrastructure
sudo: false
env:
global:
- ANDROID_API_LEVEL=25
- ANDROID_BUILD_TOOLS_VERSION=25.0.0
- ANDROID_ABI=armeabi-v7a
- ADB_INSTALL_TIMEOUT=10 # minutes (2 minutes by default)
android:
components:
- tools
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
- android-$ANDROID_API_LEVEL
- extra-android-m2repository
# Support library
- extra-android-support
# Specify at least one system image
- sys-img-armeabi-v7a-android-$ANDROID_API_LEVEL
before_script:
# Create emulator
- echo no | android create avd --force -n test -t android-$ANDROID_API_LEVEL --abi $ANDROID_ABI
# Start emulator
- emulator -avd test -no-skin -no-audio -no-window &
- adb wait-for-device &
- adb shell input keyevent 82 &
# inject Falcon dependency (to take screenshots)
# - sed -i "s/^dependencies {/dependencies { compile 'com.jraska:falcon:1.0.1'/g" build.gradle
# - sed -i "s/^repositories {/repositories { jcenter()/g" build.gradle
script:
# Build the app
- chmod +x gradlew
- ./gradlew build -PdisablePreDex
# - ./gradlew connectedAndroidTest
# after_script:
# - adb install build/outputs/apk/client-android-debug.apk
# - adb shell am start -n fr.s13d.photobackup/.PBActivity
# Go to About activity
# - adb shell input tap 500 1300
# - bash <(curl -s https://codecov.io/bash)
# gitter integration
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/78e5e3847120190ddae2
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always