-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (50 loc) · 1.34 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
language: android
notifications:
email: true
# open Travis CI task
sudo: false
android:
components:
- tools
- platform-tools
- build-tools-25.0.2
- android-25
- extra-google-m2repository
- extra-android-m2repository
- extra-android-support
licenses:
- 'Apache 2.0'
- 'android-sdk-license-.+'
jdk:
- oraclejdk8
# Emulator Management: Create, Start and Wait
before_script:
- chmod +x gradlew
# - echo no | android create avd --force -n test -t android-25 --abi armabi-v7a
# - emulator -avd test -no-audio -no-window &
# - android-wait-for-emulator
# - adb shell input keyenvent 82 &
# - ./gradlew clean build uploadArchives --info
script:
- ./gradlew assembleRelease
# clean
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
# install deploy
before_deploy:
- mv app/build/outputs/apk-release.apk app/build/outputs/apk/threeline.apk
# deploy to github release
deploy:
provider: release
api_key:
secure:[0594fd1304d056c08486962cb7e0fec476d26d60]
file: app/build/outputs/apk/threeline.apk
# must set true, otherwise Travis CI has clean the apk file
skip_cleanup: true
# deploy time when set tags is true
on:
tags: true