-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
64 lines (64 loc) · 2.88 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
env:
global:
- FLUTTER_HOME=$HOME/flutter
- ANDROID_HOME=$HOME/android-sdk
os:
- linux
sudo: false
language: dart
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libstdc++6
- lib32stdc++6
- fonts-droid
jdk: oraclejdk8
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- "$HOME/android-sdk"
- "$HOME/android-sdk-dl"
- "$HOME/.gradle/caches/"
- "$HOME/.gradle/wrapper/"
- "$HOME/.android/build-cache"
- "$HOME/.pub-cache"
before_install:
- openssl aes-256-cbc -K $encrypted_b18bf1260431_key -iv $encrypted_b18bf1260431_iv
-in mobile/android/debtor.jks.enc -out mobile/android/debtor.jks -d
install:
- mkdir -p $HOME/android-sdk-dl
- if test ! -e $HOME/android-sdk-dl/sdk-tools.zip ; then wget -O $HOME/android-sdk-dl/sdk-tools.zip
https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip; fi
- unzip -qq -n $HOME/android-sdk-dl/sdk-tools.zip -d $HOME/android-sdk
- echo y | $HOME/android-sdk/tools/bin/sdkmanager 'tools' > /dev/null
- echo y | $HOME/android-sdk/tools/bin/sdkmanager 'platform-tools' > /dev/null
- echo y | $HOME/android-sdk/tools/bin/sdkmanager 'build-tools;28.0.3' > /dev/null
- echo y | $HOME/android-sdk/tools/bin/sdkmanager 'platforms;android-28' > /dev/null
- echo y | $HOME/android-sdk/tools/bin/sdkmanager 'extras;google;m2repository' > /dev/null
- git clone https://github.com/flutter/flutter.git -b stable $FLUTTER_HOME
- "$FLUTTER_HOME/bin/flutter doctor"
# - "FLUTTER_HOME/bin/flutter channel stable"
# - "FLUTTER_HOME/bin/flutter upgrade"
before_script:
- yes | $FLUTTER_HOME/bin/flutter doctor --android-licenses
- export keystore_password=$kestore_password
script:
- cd mobile
- "$FLUTTER_HOME/bin/flutter build apk --release --build-number=$TRAVIS_BUILD_NUMBER"
before_deploy:
- mv build/app/outputs/apk/release/app-release.apk "build/app/outputs/apk/release/debtor-v${TRAVIS_BUILD_NUMBER}.apk"
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: e602VDK1OrI50BWBwIyZfltyiDcsmYri81LtXsiucfbU4X2FaGbmJWw1KYwyd81sY5JRlMFObwNQF/QdTxbm2Ah3u7Q5elz+YvtoQdaQXynzg0KDkIecarLMZFXJg+RSmXenNLX2E4Ebz4AJhe9q1bFCDEad/Cu5PiKIVUhKomF7U4p/Y0VWgj1a8oqycqw5pIRksWeCA34RqzvExtCGpZ/9l9p9FlJrutF3doIzzDAEi4su6ZqYZzakonzwbEUOx+Sm5vnxVxLr6CTzUV+sbOAUXWzsQlPA0t8auzxgME5haODfkJ6PnZSUs8iw4tVqY2LRikyeP3Uq6p36v0+jBsdQTPo0ibCXmwlIwACzexCd7ga+v7jdBKIa/q36xS3rO8RlkXwPnxd2wbh0GjZozsjrgAhgrBji92CE1EDtN8uWWG0Mg3z32xuJzpSt9FWPeF/mgz2JfOD7oEgWpqwgLk7k0wO9cbKSxa26DQFRWK/XAM9rLpoPOplDFcbMAKcA6xDC9lv+ZWTB+FEd2KfdEk6AeGsHNZge9HFYy6YFv7piG6+2kqbc49ge91MlAVwh1Q4xHXvi03+uuntxILTaaR0SsUFdSZ7PTYCIOcxqfANJT63+1QgVhhB1KI8TGjo7hKa/0UQ0QcXosXOma+Uq6P7XBLJwto1fhoSZbhaGWOI=
file_glob: true
file: build/app/outputs/apk/release/*.apk
on:
repo: marcin-dardzinski/debtor
branch: master
tags: true