2016-10-09 10:28:16 +00:00
|
|
|
sudo: required
|
|
|
|
language: android
|
|
|
|
jdk: oraclejdk8
|
|
|
|
|
|
|
|
# Install Android SDK
|
|
|
|
android:
|
|
|
|
components:
|
|
|
|
- tools
|
|
|
|
- platform-tools
|
2016-10-20 10:51:41 +00:00
|
|
|
- build-tools-25.0.0
|
|
|
|
- android-25
|
2016-10-09 10:28:16 +00:00
|
|
|
- extra-android-m2repository
|
|
|
|
|
|
|
|
# Install Golang
|
|
|
|
before_install:
|
|
|
|
- sudo apt-get update -qq
|
|
|
|
- sudo apt-get install golang -y
|
|
|
|
|
|
|
|
# Cache gradle dependencies
|
|
|
|
# https://docs.travis-ci.com/user/languages/android/#Caching
|
|
|
|
before_cache:
|
|
|
|
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.gradle/caches/
|
|
|
|
- $HOME/.gradle/wrapper/
|
|
|
|
|
|
|
|
script:
|
|
|
|
# Lint fails because travis doesn't have platform-tools 24
|
|
|
|
# https://github.com/travis-ci/travis-ci/issues/6699
|
|
|
|
#- ./gradlew lint
|
2016-10-09 16:00:08 +00:00
|
|
|
- ./gradlew buildNative assembleDebug
|
2016-10-16 13:33:00 +00:00
|
|
|
- ./gradlew compileFatDebugAndroidTestSources
|