-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
158 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,28 @@ | ||
# Project-wide Gradle settings. | ||
|
||
# IDE (e.g. Android Studio) users: | ||
# Settings specified in this file will override any Gradle settings | ||
# configured through the IDE. | ||
|
||
# For more details on how to configure your build environment visit | ||
# http://www.gradle.org/docs/current/userguide/build_environment.html | ||
|
||
# The Gradle daemon aims to improve the startup and execution time of Gradle. | ||
# When set to true the Gradle daemon is to run the build. | ||
# TODO: disable daemon on CI, since builds should be clean and reliable on servers | ||
# Specifies the JVM arguments used for the daemon process. | ||
# The setting is particularly useful for tweaking memory settings. | ||
# Default value: -Xmx10248m -XX:MaxPermSize=256m | ||
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 | ||
|
||
# When configured, Gradle will run in incubating parallel mode. | ||
# This option should only be used with decoupled projects. More details, visit | ||
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects | ||
org.gradle.parallel=true | ||
|
||
# Enables new incubating mode that makes Gradle selective when configuring projects. | ||
# Only relevant projects are configured which results in faster builds for large multi-projects. | ||
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:configuration_on_demand | ||
org.gradle.configureondemand=true | ||
|
||
|
||
org.gradle.daemon=true | ||
|
||
# Project-wide Gradle settings. | ||
|
||
# IDE (e.g. Android Studio) users: | ||
# Settings specified in this file will override any Gradle settings | ||
# configured through the IDE. | ||
|
||
# For more details on how to configure your build environment visit | ||
# http://www.gradle.org/docs/current/userguide/build_environment.html | ||
|
||
# The Gradle daemon aims to improve the startup and execution time of Gradle. | ||
# When set to true the Gradle daemon is to run the build. | ||
# TODO: disable daemon on CI, since builds should be clean and reliable on servers | ||
org.gradle.daemon=true | ||
|
||
# Specifies the JVM arguments used for the daemon process. | ||
# The setting is particularly useful for tweaking memory settings. | ||
# Default value: -Xmx10248m -XX:MaxPermSize=256m | ||
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 | ||
|
||
# When configured, Gradle will run in incubating parallel mode. | ||
# This option should only be used with decoupled projects. More details, visit | ||
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects | ||
org.gradle.parallel=true | ||
|
||
# Enables new incubating mode that makes Gradle selective when configuring projects. | ||
# Only relevant projects are configured which results in faster builds for large multi-projects. | ||
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:configuration_on_demand | ||
org.gradle.configureondemand=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Fri May 26 17:46:57 CEST 2017 | ||
#Thu Oct 26 13:46:14 CEST 2017 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip |