-
Notifications
You must be signed in to change notification settings - Fork 217
/
.travis.yml
58 lines (51 loc) · 2.07 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
# Use container-based Travis, with the Trusty image (Ubuntu 14.04).
# See https://docs.travis-ci.com/user/reference/overview/ and https://docs.travis-ci.com/user/reference/trusty/
#
# Before trying to upgrade this, check the 'android' language support at https://docs.travis-ci.com/user/languages/android/
# At the time of writing, this says:
# > Android builds are only supported on our Trusty image at this time hence you’ll need to explicitly
# specify dist: trusty in your .travis.yml file.
sudo: false
dist: trusty
branches:
only:
- master
# Get the full commit history (required to derive our version code, see the root build.gradle)
git:
depth: false
language: android
addons:
apt:
packages:
- openjdk-17-jdk
env:
global:
# Remember to keep these four values in sync with values in the root build.gradle file
- compileSdkVersion=34
- minSdkVersion=23
- targetSdkVersion=34
- toolsVersion=34.0.0 # default for Android Gradle Plugin 8.2.2
- JAVA17_HOME=/usr/lib/jvm/java-17-openjdk-amd64
# For the decryption of secrets needed to sign and publish our artifacts
- secure: "LipL0wPv0uQrKitaeGxCpoQsx5sl/Pg/DtQv4S7Bi52DxfArgvD2hPB0TWgkgYGJPfENHLEyqg+H+/v2nON3IXY+cnsd+TW+P1T03/52D56ieSKGVtVtSYUOZUgoyxIIvRZWFh/UNg+AmZIjOCTJDLitBTUxD8kWux8NjhIqZow="
android:
components:
# Android tools - it's deliberate that `tools` is in there twice, see https://docs.travis-ci.com/user/languages/android/#Installing-a-newer-SDK-Platform-Tools-revision
- tools # to download the latest listing of what's available to download
- platform-tools
- tools # to install up-to-date Android SDK tools
- build-tools-${toolsVersion}
# SDK versions
- android-${compileSdkVersion}
before_install:
- ./ciLicense.sh
- sudo pip install requests
- touch $HOME/.android/repositories.cfg
- yes | sdkmanager "platforms;android-34"
- yes | sdkmanager "build-tools;34.0.0"
install:
- ls -l /usr/lib/jvm/
- ./checkPoiTypeIcons.sh
- JAVA_HOME=${JAVA17_HOME} ./gradlew build -Dorg.gradle.java.home=${JAVA17_HOME} -x lint
script:
- ./ciPublish.sh