-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.travis.yml
More file actions
53 lines (46 loc) · 1.06 KB
/
.travis.yml
File metadata and controls
53 lines (46 loc) · 1.06 KB
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
# USEFUL TO VALIDATE YAML FILE: http://lint.travis-ci.org/
language: android
sudo: false
android:
components:
- tools
- build-tools-25.0.3
- platform-tools
- extra-android-m2repository
- extra-google-android-support
# The SDK version used to compile your project
- android-16
- android-21
- android-22
- android-25
jdk: oraclejdk8
os:
- linux
before_install:
- chmod +x gradlew
# whitelist
branches:
only:
- develop
script:
#run automated tests
- ./gradlew test
# deploy to hockeyapp
- ./gradlew assembleDebug
- >
curl
-F "status=2"
-F "notify=1"
-F "notes=Travis commit: ${TRAVIS_COMMIT_MESSAGE}."
-F "notes_type=0"
-F "ipa=@app/build/outputs/apk/app-debug.apk"
-H "X-HockeyAppToken: ${HOCKEYAPP_TOKEN}"
https://rink.hockeyapp.net/api/2/apps/upload
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache