-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (54 loc) · 1.37 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
language: android
dist: trusty
jdk: oraclejdk8
addons:
apt:
packages:
- libfile-mimeinfo-perl
branches:
except:
- l10n_alpha2
- alpha
env:
- MAJOR_MINOR=1.2.0
android:
components:
- tools
- platform-tools
- build-tools-27.0.3
- android-27
- extra-google-m2repository
before_install:
- 'yes | sdkmanager "platforms;android-27"'
- 'chmod a+x ./scripts/deploy-*.sh'
- 'chmod a+x ./scripts/changelog.sh'
- 'chmod a+x ./scripts/s3-upload.sh'
- 'git fetch --tags'
before_script:
- 'bash scripts/changelog.sh > changelog.txt'
script:
- 'bash ./gradlew assembleDebug check;'
- 'bash ./gradlew app:assembleRelease check;'
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
before_deploy:
- "cp app/build/outputs/apk/debug/app-debug.apk Lawnchair-$MAJOR_MINOR.$TRAVIS_BUILD_NUMBER.apk"
- "cp app/build/outputs/mapping/debug/mapping.txt proguard-$MAJOR_MINOR.$TRAVIS_BUILD_NUMBER.txt"
deploy:
- provider: script
skip_cleanup: true
script: scripts/deploy-s3.sh
on:
tags: true
- provider: releases
skip_cleanup: true
api_key: $GITHUB_OAUTH_TOKEN
file: "Lawnchair-$MAJOR_MINOR.$TRAVIS_BUILD_NUMBER.apk"
on:
tags: true