Skip to content

Commit bc3ebb3

Browse files
committed
Add travis CI and coveralls
1 parent e7e6759 commit bc3ebb3

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.travis.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
language: android
2+
3+
jdk: oraclejdk7
4+
5+
env:
6+
matrix:
7+
- ANDROID_TARGET=android-22 ANDROID_ABI=armeabi-v7a
8+
9+
notifications:
10+
email:
11+
- bhargav521@gmail.com
12+
13+
before_script:
14+
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
15+
- emulator -avd test -no-skin -no-audio -no-window &
16+
- android-wait-for-emulator
17+
- adb shell input keyevent 82 &
18+
19+
android:
20+
components:
21+
- tools # to get the new `repository-11.xml`
22+
- tools # to install Android SDK tools 25.1.x (x = 6 right now)
23+
- platform-tools
24+
- build-tools-24.0.3
25+
- android-22
26+
- android-24
27+
- extra-android-m2repository
28+
- sys-img-armeabi-v7a-android-22
29+
30+
script:
31+
- ./gradlew clean createDebugAndroidTestCoverageReport coveralls

build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ buildscript {
1111
// in the individual module build.gradle files
1212
}
1313
}
14+
plugins {
15+
id 'jacoco'
16+
id 'com.github.kt3k.coveralls' version '2.6.3'
17+
}
1418

1519
allprojects {
1620
repositories {

0 commit comments

Comments
 (0)