-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (58 loc) · 2.06 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
61
62
63
64
65
language: android
jdk:
- oraclejdk8
sudo: required
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
env:
global:
- ADB_INSTALL_TIMEOUT=8
matrix:
- BUILD_TYPE=assembleAll
- BUILD_TYPE=testfairyRelease
- BUILD_TYPE=productionRelease
- BUILD_TYPE=googlePlayAlpha
android:
components:
- tools
- build-tools-24.0.2
- android-25
- android-22
- extra-google-m2repository
- extra-android-m2repository
# - addon-google_apis-google-24
# - addon-google_apis-google-22
# - sys-img-armeabi-v7a-google_apis-22
before_install:
- openssl aes-256-cbc -K $encrypted_6ca2067ed10f_key -iv $encrypted_6ca2067ed10f_iv -in secrets.tar.enc -out secrets.tar -d
- tar xvf secrets.tar
- mkdir -p ~/.gradle
- echo "georentingKeystorePassword=$KEYSTORE_PASSWORD" >> ~/.gradle/gradle.properties
- echo "FirebaseServiceAccountFilePath=$TRAVIS_BUILD_DIR/georenting-1-firebase-crashreporting-7aqlr-ea40308c56.json" >> ~/.gradle/gradle.properties
- echo "testfairyKey=$TESTFAIRY_KEY" >> ~/.gradle/gradle.properties
- sudo apt-get install -y jq
- rvm use ruby --latest --install --binary --fuzzy
- gem install fastlane
script:
- if [ "$BUILD_TYPE" == "assembleAll" ]; then ./gradlew assemble; fi;
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$BUILD_TYPE" == "testfairyRelease" ]; then ./gradlew testfairyInternalRelease firebaseUploadInternalReleaseProguardMapping; fi;
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$BUILD_TYPE" == "googlePlayAlpha" ]; then fastlane alpha; fi;
- if [ "$TRAVIS_TAG" ] && [ "$BUILD_TYPE" == "productionRelease" ]; then fastlane beta; fi;
notifications:
slack:
rooms:
- alternadev:DV4HmorAz8nFcc4rxBdy92ke#android
deploy:
provider: releases
api-key: $GITHUB_TOKEN
file:
- "./app/build/outputs/apk/app-production-release.apk"
- "./app/build/outputs/apk/app-internal-release.apk"
skip_cleanup: true
on:
tags: true
condition: $BUILD_TYPE = assembleAll