-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
34 lines (34 loc) · 839 Bytes
/
.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
language: android
dist: trusty
jdk: oraclejdk8
if: tag IS blank
os: linux
android:
components:
- build-tools-29.0.2
- android-29
before_install:
- openssl aes-256-cbc -k ${encryption_password} -in ocquarium_keystore.jks.enc -out ocquarium_keystore.jks -d
- chmod a+x ./scripts/deploy.sh
- chmod a+x ./scripts/changelog.sh
- git fetch --tags
before_script:
- bash scripts/changelog.sh > changelog.txt
script:
- bash ./gradlew app:assembleTravis
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/travis/*.apk ./
deploy:
- provider: script
cleanup: false
script: scripts/deploy.sh
on:
branch: master