Skip to content

Commit b005969

Browse files
committed
Revert "Get rid of Travis CI"
This reverts commit 7a8871b.
1 parent e575a62 commit b005969

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.travis.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
language: android
2+
dist: trusty
3+
jdk: oraclejdk8
4+
addons:
5+
apt:
6+
packages:
7+
- libfile-mimeinfo-perl
8+
branches:
9+
except:
10+
- l10n_alpha2
11+
- alpha
12+
env:
13+
- MAJOR_MINOR=1.2.0
14+
android:
15+
components:
16+
- tools
17+
- platform-tools
18+
- build-tools-27.0.3
19+
- android-27
20+
- extra-google-m2repository
21+
before_install:
22+
- 'yes | sdkmanager "platforms;android-27"'
23+
- 'chmod a+x ./scripts/deploy-*.sh'
24+
- 'chmod a+x ./scripts/changelog.sh'
25+
- 'chmod a+x ./scripts/s3-upload.sh'
26+
- 'git fetch --tags'
27+
before_script:
28+
- 'bash scripts/changelog.sh > changelog.txt'
29+
script:
30+
- 'bash ./gradlew assembleDebug check;'
31+
- 'bash ./gradlew app:assembleRelease check;'
32+
before_cache:
33+
- 'rm -f $HOME/.gradle/caches/modules-2/modules-2.lock'
34+
- 'rm -fr $HOME/.gradle/caches/*/plugin-resolution/'
35+
cache:
36+
directories:
37+
- $HOME/.gradle/caches/
38+
- $HOME/.gradle/wrapper/
39+
- $HOME/.android/build-cache
40+
before_deploy:
41+
- "cp app/build/outputs/apk/debug/app-debug.apk Lawnchair-$MAJOR_MINOR.$TRAVIS_BUILD_NUMBER.apk"
42+
- "cp app/build/outputs/mapping/debug/mapping.txt proguard-$MAJOR_MINOR.$TRAVIS_BUILD_NUMBER.txt"
43+
deploy:
44+
- provider: script
45+
skip_cleanup: true
46+
script: scripts/deploy-s3.sh
47+
on:
48+
tags: true
49+
- provider: releases
50+
skip_cleanup: true
51+
api_key: $GITHUB_OAUTH_TOKEN
52+
file: "Lawnchair-$MAJOR_MINOR.$TRAVIS_BUILD_NUMBER.apk"
53+
on:
54+
tags: true

0 commit comments

Comments
 (0)