This repository has been archived by the owner on Nov 24, 2018. It is now read-only.
forked from FAU-Inf2/fablab-android
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
47 lines (36 loc) · 1.66 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
language: android
android:
components:
- android-22
- build-tools-22.0.1
- extra-google-google_play_services
- extra-android-support
- extra-android-m2repository
- extra-google-m2repository
jdk: oraclejdk8
# cache, so that the build runs faster - see https://docs.travis-ci.com/user/languages/android/
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
env:
global:
- secure: KuCVpSmLqbTDgKz9ZHTQOjTjcBPNXGVLw4+LNShhd88tWwPYnhJ97F7CV8mILOSc6iAUUiix3ZpPLqUNciWaqhVtC4WyQEQxPz+ypb4CuuwtcgE6mo+KD1Q0L/vLLUJjhVB2VsolXK07YRTwbmI912Cg7HuOB1U/vn5/4mc824U=
- secure: gUKso160n5SBkQKXJnJJW5fBPgclucIV11IhIakn9wqPZmcdP0tm7AZ4cdKB57PX1Fepr5eozKoPCHrCiP5Ofo7ZHiS/kG0I7iB6Vc2vTE66FLeLxyibqVLnIJSd2ImJ4Ewms8lIAuBiKwSE0S2ADPQFJwomSiWdMDluYgx3mOg=
# Secret keys are only available on the FAU-Inf2 travis build environment, not for the development fork at fau-fablab.
# The final build steps will be skipped if TRAVIS_SECURE_ENV_VARS is not true.
before_install:
- if [ ${TRAVIS_SECURE_ENV_VARS} = "true" ]; then
openssl aes-256-cbc -K $encrypted_ac4e281d93a4_key -iv $encrypted_ac4e281d93a4_iv
-in keys.tar.enc -out keys.tar -d;
tar xvf keys.tar;
mv madfau.keystore app/;
fi
script: if [ ${TRAVIS_SECURE_ENV_VARS} = "true" ]; then ./gradlew assemble; else ./gradlew check; fi
after_success:
- if [ ${TRAVIS_SECURE_ENV_VARS} = "true" ]; then
mv app/build/outputs/apk/app-googleplay-release.apk fablab-android-$TRAVIS_BRANCH-`git rev-parse HEAD`.apk;
curl -u $LOGIN -F "apk=@fablab-android-$TRAVIS_BRANCH-`git rev-parse HEAD`.apk" -F "project=fablab-android" $URL;
fi