forked from NASAWorldWind/WorldWindAndroid
-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
77 lines (68 loc) · 2.62 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
# Directs the Travis CI build service for WorldWind Android
# For more information see https://docs.travis-ci.com/user/customizing-the-build/
# Set up to run the Android build script per the Travis CI documentation
language: android
# Configure the build to use JDK 11, required by Gradle 7.3.3
jdk: openjdk11
# Configure the Android build configuration to match the Gradle build
android:
components:
- extra-android-m2repository
env:
global:
- TARGET_VERSION=31
- ANDROID_HOME=~/android-sdk
# Use Command Line Tools SDK manager which works with JDK 11, instead of standard one
before_install:
- wget "https://dl.google.com/android/repository/commandlinetools-linux-7302050_latest.zip" -O commandlinetools.zip
- unzip commandlinetools.zip -d $ANDROID_HOME/
- yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager "platforms;android-${TARGET_VERSION}" --sdk_root=$ANDROID_HOME
# Decrypt the keystore used to certify Android apps when the build is not a pull request
#before_script:
# - 'if [[ -n "${encrypted_2eaf8cabe659_key}" ]]; then openssl aes-256-cbc -K "${encrypted_2eaf8cabe659_key}" -iv "${encrypted_2eaf8cabe659_iv}" -in keystore.jks.enc -out keystore.jks -d; fi'
# Build the project
script:
- ./gradlew build --stacktrace
# Deployment has been disabled in preparation for the WorldWind project suspension on April 5, 2019
deploy:
# # Publish SNAPSHOT artifacts to oss.jfrog.org
# - provider: script
# script: ./gradlew worldwind:artifactoryPublish --stacktrace
# skip_cleanup: true
# on:
# branch: develop
# Publish API documentation to GitHub Pages
- provider: pages
github_token: $GITHUB_API_KEY
local_dir: worldwind/build/outputs/doc/javadoc
skip_cleanup: true
on:
branch: develop
# # Publish release artifacts to Bintray/JCenter
# - provider: script
# script: ./gradlew worldwind:bintrayUpload --stacktrace
# skip_cleanup: true
# on:
# tags: true
# # Create CHANGELOG.md in the current directory
# - provider: script
# script: ./travis/changelog.sh >> CHANGELOG.md
# skip_cleanup: true
# on:
# tags: true
# # Create a GitHub release and publish CHANGELOG.md to the release assets
# - provider: releases
# api_key: $GITHUB_API_KEY
# file: CHANGELOG.md
# skip_cleanup: true
# on:
# tags: true
# Android build cache configuration. See the Travis documentation: https://docs.travis-ci.com/user/languages/android#Caching
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/
- $HOME/.android/build-cache