forked from SundeepK/CompactCalendarView
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (35 loc) · 1.08 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
language: android
sudo: required
env:
global:
- ADB_INSTALL_TIMEOUT=8 # 8 minutes (2 minutes by default)
jdk:
- oraclejdk8
cache:
directories:
# Gradle dependencies
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
# python
- $HOME/.cache/pip/
android:
components:
- tools
- build-tools-24.0.3
- android-19
- android-24
- sys-img-armeabi-v7a-android-19
before_install:
- sudo pip install Pillow
before_script:
- echo no | android create avd --force -n test -t android-19 --abi armeabi-v7a
- mksdcard -l sdcard 100M sdcard
- emulator -avd test -no-audio -no-window -sdcard sdcard &
- android-wait-for-emulator
- adb shell settings put global window_animation_scale 0 &
- adb shell settings put global transition_animation_scale 0 &
- adb shell settings put global animator_duration_scale 0 &
- adb shell input keyevent 82 &
script:
- ./gradlew verifyMode screenshotTests -Pcom.android.build.threadPoolSize=1 -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xms1024m -Xmx1024m" -Dorg.gradle.daemon=false
- ./gradlew test