forked from mohsenoid/marvel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (46 loc) · 1.54 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
sudo: required
jdk:
- oraclejdk8
env:
global:
- ANDROID_API_LEVEL=25
- ANDROID_BUILD_TOOLS_VERSION=25.0.0
android:
components:
- tools
- platform-tools
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
- android-$ANDROID_API_LEVEL
- addon-google_apis-google-$ANDROID_API_LEVEL
- extra-google-google_play_services
- extra-google-m2repository
- extra-google-google_play_services
- extra-android-m2repository
- extra-android-support
- sys-img-armeabi-v7a-google_apis-21
licenses:
- '.+'
before_install:
- echo y | sudo apt-get update
- echo y | sudo apt-get install openjdk-7-jre
- export JAVA7_HOME=/usr/lib/jvm/java-7-oracle
- export JAVA8_HOME=/usr/lib/jvm/java-8-oracle
- export JAVA_HOME=$JAVA8_HOME
- chmod +x gradlew
script:
- android list targets
- echo no | android create avd --force -n testemulator -t "android-21" --abi armeabi-v7a
- echo 'vm.heapSize=512' >> ~/.android/avd/testemulator.ini
- echo 'hw.ramSize=1024' >> ~/.android/avd/testemulator.ini
- cat ~/.android/avd/testemulator.ini
- emulator -avd testemulator -no-skin -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
- adb shell svc power stayon true
- 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
- ./gradlew build createMockDebugCoverageReport jacocoTestReport
after_success:
- bash <(curl -s https://codecov.io/bash)