forked from niccokunzmann/mundraub-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
79 lines (71 loc) · 4.11 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
66
67
68
69
70
71
72
73
74
75
76
77
78
# from https://docs.travis-ci.com/user/languages/android/
language: android
android:
components:
# Uncomment the lines below if you want to
# use the latest revision of Android SDK Tools
- tools
- platform-tools
# The SDK version used to compile your project
- android-25
# caching from https://stackoverflow.com/a/38772440
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/
env:
global:
- TRAVIS_SDK_PATH=/usr/local/android-sdk/licenses
- secure: "Na7QEyUACs6m4mubocccHnGAyeAuEZHgnMB3OvB2Mur0kQQ68S7OUWWm16s4meEeVZnMBhUHb1tqamJDeKXTTKkPBVNA4UZhs/eFcftBBrQFAJA6HhKbdqwO+fEHJIaoa8Sa09z8QLmS9BhkB3a+/UvAkLeFsBPf5K3p6p1PKpSK7wNT6RoLN5kOWrlJoKYPexl1oXcu7zTz4/nSpr4M4WdTUoM1rM/4X1KDxeUQ0RDxwY4NP/6g+BVifXHOSKsQNpf0pkPzSIinuKr36n2BhjEQxuaHFTAamJArIcAhjt3xbY7OnCmOaaOe7UqaOPp2mR2HbcWov7GJqiyYuwWx+PCoQ1KhtPBgvFnpOlBmLhqlID+9c1gsQ8antoHApQmnhUKD2Osu+WAYk6P1mV27T6ysgpCGqHUNH20prsxovdnM6Zx2yTRwuD1UzUGl++B0i5LwCVuwqKqZHe0USH80ImPSxS2ztlaIxIEDHrYn5HoKv/vhr8mJtrfwtXXFp2OhEUfSWCF3IwRgJbnT4laoCDyBwKKXbiOc22cAOsMQ1yuLsGVD/4Yt/Gm5UcyOIM1JMCARQ7Q48gEcQR4u928S3g/1OdvfxTkVbFgqEhewNmYOkrF8QSCrMYVx//wJeZMgzBIOwl+dAOkojpaIDgFMLHn0pDF6fkUVIFeCqQtEiHw=" # TRANSIFEX_PASSWORD
- secure: "cHs4XleLfH4MORfiqmbKx43+i/73V3rkiRtnt+aYNkZkDJCfkbAInKz4VQFPN0nTOkggEoWHHM7zxckI2RuITcdZEeHEgvWcrlkedKctXJM2i9IES5fpITLy0ZalXP0Hok9SAmE6tfRXEotkX5PUzIhCBM+NHCi3UIzeVF7b+ZYVd6vCZpTOwYA4gR2BBL8Z4gmp/cneCujas+xp4i0MbuIPIFfTnG1Bp3GYpBLOhCd+A2TS9DToSBxz1x9Ee+mdnfwgJwyGtRFffjU8Tk2h1ilVqzb7xi8u/N6ygzKBw2m1B+LVo7TDvb+MbsbGe0Wilm50yuGHTU+k6g5Ai9h/Y7EbdHNgB2ffoUswOMnnkuws/IBfdOLhGtt5YlaKvQ6eytnJ2nAkpmvmnoVFUTSD3Nzrrl93glunG4G9CycdT8g1LYhy2Pv3Oludkat5HDi/FL0FFjXFt+tND2GSyhYkip5y4utiuCR7jWlEBEfwxyYmpW/8qDxIqeISUkXkDSMrbvIrMpkQ2p9svCZkHrMbjS7Zio9a0iIGl5FxlyyYU1P7eQH9mxf2ZZupPDdgCbrNAurCZl2l7bGAK1ltc3QOXqCe9dDA8IqeZZ4APO0czdNfJpSrkcptnxPOOcNIa4iysVq6KR+vbP/qi8wwg3ZS0gZrLuM326RPVIYWd85ZLHs=" # GITHUB_TOKEN
addons:
apt:
# see https://docs.travis-ci.com/user/installing-dependencies/
update: true
packages:
- python3-pip
before_script:
# install sdkman from https://sdkman.io/
- curl -s "https://get.sdkman.io" | bash && source /home/travis/.sdkman/bin/sdkman-init.sh
# install gradle of a specific version, from https://gradle.org/install/#with-a-package-manager
- sdk install gradle 4.4
# install the licenses
- mkdir -p "$TRAVIS_SDK_PATH" && cp .travis/licenses.zip "$TRAVIS_SDK_PATH" && ( cd "$TRAVIS_SDK_PATH" && unzip licenses.zip && rm licenses.zip )
script:
# build and test
- gradle build check
- ./scripts/runHTTPProxy.sh --compile
# use the build
- "find | grep '\\.apk'"
- .travis/release-apk && [ -f "`.travis/release-apk`" ]
- .travis/debug-apk && [ -f "`.travis/debug-apk`" ]
before_deploy:
- cp "`.travis/release-apk`" mundraub-release-unsigned.apk
- cp "`.travis/debug-apk`" mundraub-debug.apk
deploy:
# push the latest strings to translate
- provider: script
script: .travis/deploy_translation_sources
skip_cleanup: true
on:
branch: master
# push the release tag
- provider: script
script: .travis/create_release
skip_cleanup: true
on:
branch: master
# in the release tag, upload the apks
- provider: releases
api_key:
secure: bvhMN07c2vgCBTH62fiF+XwK/4Vs0n6kIwP3Fv+emWgu7TUtEgn8Ypx2Bft3nKYZCZJa2/nM5BBqJ4OanSAzhiLT5u8PT6tbPAJRxe98mUYR090aUReHEUesWKuwFVvhpjp0G1obY7p2YrnxjugJrrr/rgr8Rps382h3kKws9cTyWg1vYlbvmzH2Ks//7lObU3UiGit61La4VYffkcYOEYCo4UQQsrCScnHokYmf9sorimNTSFBQvuaLZpJF91T++Xa2Bl5IsbGnE0gQ3bGEltmKKbukkvGCsmKjxNj3WMIoPfjZfF1D6P9koiWXGMncex4dsdAU3nGGfeyAJpNlQMsCHMEu+Phu7qZsaLJHeo1LIFrkRnkBegNxOWjP8VW9+cMvAwuCfwkJMqPJZRcBUy3RoBRgoXha1jaLTb4LMxLO+WSd4Qf1X5zw437XSiKHRnXc+8noKbvSknTsc4MygyO84chuvbX/i9qNpVGiWRXfnnMCZlGStvY0O8Aov+19wohM1crvaTaA1fZezJjjOCXE004tjjPMUw2plJccn7OVjb/K4F7WkZclbF+yJujOaeX3oYxpgZEsPb7dgyuIB7pGq40kJ8tJLbZaDaHteHvSYpfsFsrbK4B3fCHt3FOgjeA9oj+U9vwpF27GDgvs2XYPCM20W9UpZdFJljYokNw=
file:
- mundraub-debug.apk
- mundraub-release-unsigned.apk
skip_cleanup: true
on:
tags: true
repo: Marky25/mundraub-android