-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
73 lines (59 loc) · 1.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
65
66
67
68
69
70
71
72
73
# ORIGINAL FILE: https://github.com/mtransitapps/commons/tree/master/shared-overwrite
os: linux
# dist: precise # Ubuntu 12.04.x LTS (Precise Pangolin)
# dist: trusty # Ubuntu 14.04.x LTS (Trusty Tahr)
# dist: xenial # Ubuntu 16.04.x LTS (Xenial Xerus)
# dist: bionic # Ubuntu 18.04.x LTS (Bionic Beaver)
# dist: focal # Ubuntu 20.04.x LTS (Focal Fossa)
dist: jammy # Ubuntu 22.04.x (Jammy Jellyfish
language: android # requested Linux distribution not always honored!
# language: java # required installing Android SDK Tools manually
jdk: openjdk11
sudo: required
git:
submodules: false
branches:
only:
- master #TBR main|prod
- mmathieum #TBR dev|ready|pull
- /^hotfix/.*$/
- develop
- /^feature/.*$/
env:
global:
- ANDROID_API_LEVEL=34
- ANDROID_BUILD_TOOLS_VERSION=34.0.0
- TZ=America/Toronto
android:
components:
- tools # to get the new repositories
- platform-tools
- tools # to install Android SDK tools
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
- android-$ANDROID_API_LEVEL
licenses:
- 'android-sdk-license-.+'
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
# STEPS:
# https://docs.travis-ci.com/user/job-lifecycle/
before_install:
- sudo apt-get update
- sudo apt-get -y install gawk # GNU Awk v4+ required
- chmod +x checkout_submodules.sh
- ./checkout_submodules.sh
- chmod +x commons/sync.sh
- ./commons/sync.sh
- mkdir "$ANDROID_HOME/licenses" || true
- echo "d56f5187479451eabf01fb78af6dfcb131a6481e" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo "24333f8a63b6825ea9c5514f83c2829b004d1fee" >> "$ANDROID_HOME/licenses/android-sdk-license"
- touch ~/.android/repositories.cfg
install: true
script:
- ./build.sh
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/