Skip to content

Commit 0023cea

Browse files
authored
Merge pull request Zomato#3 from shubhamchaudhary/feature/travis
Add Travis Configuartion
2 parents 27c31ad + a8fa0ed commit 0023cea

File tree

3 files changed

+55
-7
lines changed

3 files changed

+55
-7
lines changed

.travis.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
language: android
2+
android:
3+
components:
4+
#- platform-tools
5+
- tools
6+
- build-tools-23.0.3
7+
- android-23
8+
- extra-android-m2repository
9+
10+
# Additional components
11+
#- add-on
12+
#- extra
13+
14+
# Specify at least one system image,
15+
# if you need to run emulator(s) during your tests
16+
#- sys-img-armeabi-v7a-android-21
17+
18+
19+
jdk:
20+
# Check Travis JDKs http://docs.travis-ci.com/user/languages/java/#Testing-Against-Multiple-JDKs
21+
# Test against one or more JDKs: 'jdk' is combined with 'env' to construct a build matrix.
22+
# - openjdk7
23+
- oraclejdk7
24+
25+
sudo: false
26+
27+
env:
28+
- TERM=dumb
29+
30+
# Emulator Management: Create, Start and Wait
31+
#before_script:
32+
#- echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
33+
#- emulator -avd test -no-skin -no-audio -no-window &
34+
#- curl http://is.gd/android_wait_for_emulator > android-wait-for-emulator
35+
#- chmod u+x android-wait-for-emulator
36+
#- ./android-wait-for-emulator
37+
#- adb shell input keyevent 82 &
38+
39+
script: ./gradlew clean test
40+
41+
after_failure:
42+
# Customize this line, 'app' is the specific app module name of this project. Shows log.
43+
- export MY_MOD="app"
44+
#- export MY_LOG_DIR="$(pwd)/${MY_MOD}/build/outputs/reports/androidTests/connected/"
45+
- export MY_LOG_DIR="$(pwd)/${MY_MOD}/build/reports/tests/debug/'
46+
- pwd && cd "${MY_LOG_DIR:-.}" && pwd && ls -al
47+
- apt-get install -qq lynx && lynx --dump index.html > myIndex.log
48+
- for file in *.html; do echo "$file"; echo "====================="; lynx --dump $file; done || true

example/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 22
4+
compileSdkVersion 23
55
buildToolsVersion "23.0.3"
66
defaultConfig {
77
applicationId 'com.example.filters'
88
minSdkVersion 15
9-
targetSdkVersion 22
9+
targetSdkVersion 23
1010
versionCode 1
1111
versionName "1.0"
1212
}
@@ -21,7 +21,7 @@ android {
2121
dependencies {
2222
compile fileTree(include: ['*.jar'], dir: 'libs')
2323
compile project(':photofilterssdk')
24-
compile 'com.android.support:appcompat-v7:22.2.0'
25-
compile 'com.android.support:recyclerview-v7:22.2.0'
24+
compile 'com.android.support:appcompat-v7:23.4.0'
25+
compile 'com.android.support:recyclerview-v7:23.4.0'
2626
compile 'com.github.ksoichiro:android-observablescrollview:1.5.2'
2727
}

photofilterssdk/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
apply plugin: 'com.android.library'
22

33
android {
4-
compileSdkVersion 22
4+
compileSdkVersion 23
55
buildToolsVersion "23.0.3"
66

77
defaultConfig {
88
minSdkVersion 15
9-
targetSdkVersion 22
9+
targetSdkVersion 23
1010
versionCode 1
1111
versionName "1.0"
1212
}
@@ -21,5 +21,5 @@ android {
2121
dependencies {
2222
compile fileTree(dir: 'libs', include: ['*.jar'])
2323
testCompile 'junit:junit:4.12'
24-
compile 'com.android.support:appcompat-v7:22.2.0'
24+
compile 'com.android.support:appcompat-v7:23.4.0'
2525
}

0 commit comments

Comments
 (0)