forked from MostafaGazar/soas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (47 loc) · 1.48 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
language: android
# Turning off caching to avoid caching Issues.
# cache: false
# Using the new Container-Based Infrastructure.
sudo: false
env:
global:
# Initiating clean Gradle output.
- TERM=dumb
# Amount of memory granted to Gradle JVM.
- GRADLE_OPTS="-Xmx512m -XX:MaxPermSize=512m"
# General Android settings used in builds.
- ANDROID_TARGET=android-19
- ANDROID_ABI=armeabi-v7a
before_install:
# Making sure gradlew has executable permissions.
- chmod +x gradlew
android:
components:
# We are using the latest revision of Android SDK Tools.
- platform-tools
- tools
# The BuildTools version we are using for our project.
- build-tools-21.1.2
# System Image we use to run emulator(s) during tests
- sys-img-armeabi-v7a-android-19
- sys-img-x86-android-17
# Additional components.
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- addon-google_apis-google-19
licenses:
- 'android-sdk-license-.+'
# Emulator Management: Create, Start and Wait.
before_script:
# Inspecting running services.
- ps auxww
- 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 connectedAndroidTest
# Limit the regular builds to only kick off from master.
# branches:
# only:
# - master