-
Notifications
You must be signed in to change notification settings - Fork 689
/
.travis.yml
90 lines (70 loc) · 2.6 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
language: android
android:
components:
# Uncomment the lines below if you want to
# use the latest revision of Android SDK Tools
- tools
- platform-tools
# The BuildTools version used by your project
- build-tools-23.0.3
# The SDK version used to compile your project
- android-23
# Additional components
#- extra-google-google_play_services
#- extra-google-m2repository
- extra-android-m2repository
# Specify at least one system image,
# if you need to run emulator(s) during your tests
#- sys-img-armeabi-v7a-android-23
#licenses:
#- 'android-sdk-license-.+'
cache:
directories:
- $HOME/.gradle/caches/2.10
# Remember to change 2.10 with your gradle version if you are using a different one and remember also that the version is specified in the file gradle-wrapper.properties in your root gradle folder.
- $HOME/.gradle/caches/jars-1
- $HOME/.gradle/daemon
- $HOME/.gradle/native
- $HOME/.gradle/wrapper
# Emulator Management: Create, Start and Wait
before_script:
- echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
- emulator -avd test -no-skin -no-audio -no-window &
- curl http://is.gd/android_wait_for_emulator > android-wait-for-emulator
- chmod u+x android-wait-for-emulator
- android-wait-for-emulator
- adb shell input keyevent 82 &
# script: "./gradlew build"
sudo: false
notifications:
email: false
after_success:
- bash <(curl -s https://codecov.io/bash)
#cache:
# directories:
# - $HOME/.gradle
##--------------------------------------------------------------------------------
## After test cases written
#env:
# matrix:
# - ANDROID_TARGET=android-23 ANDROID_ABI=armeabi-v7a
# - ANDROID_TARGET=android-16 ANDROID_ABI=armeabi-v7a
#before_script:
# - echo no | android create avd --force --name test --target $ANDROID_TARGET --abi $ANDROID_ABI
# - emulator -avd test -no-skin -no-audio -no-window &
#script:
# - ./gradlew check -PdisablePreDex --continue --stacktrace
# - android-wait-for-emulator
# - adb devices
# - adb shell input keyevent 82 &
# - ./gradlew connectedAndroidTest -PdisablePreDex --continue --stacktrace
#after_failure:
# - wget http://imgur.com/tools/imgurbash.sh
# - chmod a+x imgurbash.sh
# - adb shell screencap -p | sed 's/\r$//' > screen.png
# - ./imgurbash.sh screen.png
# - pandoc builder/build/reports/tests/index.html -t plain | sed -n '/^Failed tests/,/default-package/p'
#after_success:
# - ./gradlew jacocoFullReport
# - pip install --user codecov
# - codecov