Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit 20ba2bc

Browse files
Sam1301timabbott
authored andcommitted
Add .travis.yml to run linter in CI.
1 parent a63de65 commit 20ba2bc

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.travis.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
language: android
2+
jdk: oraclejdk8
3+
cache:
4+
directories:
5+
- $HOME/.gradle/caches/
6+
- $HOME/.gradle/wrapper/
7+
android:
8+
components:
9+
# use the latest revision of Android SDK Tools
10+
- tools
11+
- platform-tools
12+
13+
# The BuildTools version used by your project
14+
- build-tools-23.0.2
15+
16+
# The SDK version used to compile your project
17+
- android-24
18+
19+
# Additional components
20+
- extra-google-google_play_services
21+
- extra-google-m2repository
22+
- extra-android-m2repository
23+
24+
# uncomment when we enable espresso tests
25+
# - sys-img-armeabi-v7a-android-21
26+
27+
licenses:
28+
- 'android-sdk-license-.+'
29+
30+
# uncomment the following lines to use emulator while runnning espresso tests
31+
# Emulator Management: Create, Start and Wait
32+
#before_script:
33+
# - echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
34+
# - emulator -avd test -no-skin -no-audio -no-window &
35+
# - android-wait-for-emulator
36+
# - adb shell input keyevent 82 &
37+
38+
# run gradle lint and
39+
# gradle build without using using tests for now (assemble) on debug build only
40+
script:
41+
- ./gradlew lintDebug
42+
- ./gradlew assembleDebug

0 commit comments

Comments
 (0)