2016-02-07 15:39:25 +00:00
|
|
|
language: android
|
|
|
|
sudo: false
|
|
|
|
before_script:
|
|
|
|
- echo sdk.dir $ANDROID_HOME > local.properties
|
|
|
|
script:
|
2016-11-13 15:03:01 +00:00
|
|
|
- jdk_switcher use oraclejdk8
|
2016-02-07 15:39:25 +00:00
|
|
|
- export TERM=dumb
|
|
|
|
- export JAVA_OPTS="-XX:MaxPermSize=1024m -XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError -Xmx2048m"
|
|
|
|
- ./gradlew build
|
|
|
|
android:
|
|
|
|
components:
|
|
|
|
- tools
|
2016-11-13 15:22:55 +00:00
|
|
|
- platform-tools
|
2016-11-13 14:54:55 +00:00
|
|
|
- build-tools-24.0.2
|
|
|
|
- android-24
|
2016-02-07 15:39:25 +00:00
|
|
|
- extra-android-m2repository
|
|
|
|
before_cache:
|
|
|
|
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.gradle/caches/
|
|
|
|
- $HOME/.gradle/wrapper/
|