1
0
Fork 0
mirror of https://github.com/gsantner/dandelion synced 2024-11-24 13:22:08 +01:00
dandelion/.travis.yml

49 lines
1.8 KiB
YAML
Raw Normal View History

2016-03-30 10:32:07 +02:00
language: android
2017-10-29 11:01:27 +01:00
jdk: oraclejdk8
2016-07-18 11:59:10 +02:00
before_cache:
2017-10-29 11:01:27 +01:00
# 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/
2016-07-18 11:59:10 +02:00
cache:
directories:
2017-10-29 11:01:27 +01:00
# Android SDK
- $HOME/android-sdk-dl
- $HOME/android-sdk
# Gradle dependencies
2016-07-18 11:59:10 +02:00
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
2017-10-29 11:01:27 +01:00
# 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
2016-03-30 11:00:06 +02:00
2016-08-14 11:34:36 +02:00
branches:
except:
2017-10-29 11:01:27 +01:00
- gh-pages
- l10n_master
- crowdin
env:
global:
- ANDROID_HOME=$HOME/android-sdk
matrix:
2017-10-29 15:33:59 +01:00
- TASK="clean lintFlavorDefaultDebug --stacktrace"
- TASK="clean build check -x lint --stacktrace"
2017-10-29 11:01:27 +01:00
script: "./gradlew --no-daemon --parallel $TASK"