This repository has been archived by the owner on Dec 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
63 lines (63 loc) · 1.95 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
sudo: required
notifications:
email: false
dist: trusty
group: edge
services:
- docker
language: android
jdk: oraclejdk8
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -rf $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- "$HOME/.gradle/caches/"
- "$HOME/.gradle/wrapper/"
- "$HOME/.android/build-cache"
before_install:
- mkdir "$ANDROID_HOME/licenses" || true
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
- openssl aes-256-cbc -K $encrypted_3fe6ca7ef0d3_key -iv $encrypted_3fe6ca7ef0d3_iv -in configuration.tar.enc -out configuration.tar -d
- tar xvf configuration.tar
- mv ${TRAVIS_BUILD_DIR}/google-services.json ${TRAVIS_BUILD_DIR}/app/google-services.json
- cp local.properties.ci local.properties
- ls -all
- source scripts/writeEnvVariables.sh && copyEnvVarsToManifest && copyEnvVarsToSigningProperties && copyEnvVarsToFastlaneConfiguration
- chmod +x ./gradlew
- yes | sdkmanager "platforms;android-27"
env:
global:
- ANDROID_API_LEVEL=27
- ANDROID_BUILD_TOOLS=27.0.3
- ADB_INSTALL_TIMEOUT=5
android:
components:
- tools
- platform-tools
- tools
- android-$ANDROID_API_LEVEL
- build-tools-$ANDROID_BUILD_TOOLS
licenses:
- android-sdk-license-.+
- '.+'
script:
- android list target
- ./gradlew clean test build
before_deploy:
- cd ${TRAVIS_BUILD_DIR}/app/build/outputs/apk/release && ls --all
- export APK_PATH_TEMP="$(pwd)/Apolline*.apk" && export APK_PATH=$(echo ${APK_PATH_TEMP}) && echo $APK_PATH
- cd ${TRAVIS_BUILD_DIR}
- bundle install && bundle update fastlane
- bundle exec fastlane beta
- bundle exec fastlane deploy
deploy:
provider: releases
skip_cleanup: true
file: ${APK_PATH}
api_key: $GH_TOKEN
on:
repo: Apolline-Lille/apolline-android
branch: master
tags: true