mirror of
https://github.com/gsantner/dandelion
synced 2024-11-05 03:56:01 +01:00
48 lines
1.8 KiB
YAML
48 lines
1.8 KiB
YAML
language: android
|
|
jdk: oraclejdk8
|
|
|
|
before_cache:
|
|
# Do not cache a few Gradle files/directories (see https://docs.travis-ci.com/user/languages/java/#Caching)
|
|
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
|
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
|
|
|
|
cache:
|
|
directories:
|
|
# Android SDK
|
|
- $HOME/android-sdk-dl
|
|
- $HOME/android-sdk
|
|
|
|
# Gradle dependencies
|
|
- $HOME/.gradle/caches/
|
|
- $HOME/.gradle/wrapper/
|
|
|
|
# Android build cache (see http://tools.android.com/tech-docs/build-cache)
|
|
- $HOME/.android/build-cache
|
|
|
|
install:
|
|
# Download and unzip the Android SDK tools (if not already there thanks to the cache mechanism)
|
|
# Latest version available here: https://developer.android.com/studio/index.html#downloads
|
|
- if test ! -e $HOME/android-sdk-dl/sdk-tools.zip ; then curl https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip > $HOME/android-sdk-dl/sdk-tools.zip ; fi
|
|
- unzip -qq -n $HOME/android-sdk-dl/sdk-tools.zip -d $HOME/android-sdk
|
|
|
|
# Install or update Android SDK components (will not do anything if already up to date thanks to the cache mechanism)
|
|
- echo y | $HOME/android-sdk/tools/bin/sdkmanager 'tools' > /dev/null
|
|
- echo y | $HOME/android-sdk/tools/bin/sdkmanager 'platform-tools' > /dev/null
|
|
- echo y | $HOME/android-sdk/tools/bin/sdkmanager 'build-tools;26.0.2' > /dev/null
|
|
- echo y | $HOME/android-sdk/tools/bin/sdkmanager 'platforms;android-27' > /dev/null
|
|
- echo y | $HOME/android-sdk/tools/bin/sdkmanager 'extras;google;m2repository' > /dev/null
|
|
|
|
branches:
|
|
except:
|
|
- gh-pages
|
|
- l10n_master
|
|
- crowdin
|
|
|
|
env:
|
|
global:
|
|
- ANDROID_HOME=$HOME/android-sdk
|
|
matrix:
|
|
- TASK="lintFlavorDefaultDebug --stacktrace"
|
|
- TASK="build check --stacktrace"
|
|
|
|
script: "./gradlew --no-daemon --parallel $TASK"
|