2016-10-09 10:28:16 +00:00
|
|
|
sudo: required
|
|
|
|
language: android
|
|
|
|
jdk: oraclejdk8
|
2017-10-24 05:55:28 +00:00
|
|
|
dist: trusty
|
2016-10-09 10:28:16 +00:00
|
|
|
|
|
|
|
# Install Android SDK
|
|
|
|
android:
|
|
|
|
components:
|
|
|
|
- tools
|
2017-09-27 07:25:11 +00:00
|
|
|
- android-26
|
2017-10-08 06:27:09 +00:00
|
|
|
- build-tools-26.0.2
|
2016-10-09 10:28:16 +00:00
|
|
|
- platform-tools
|
2017-10-08 06:27:09 +00:00
|
|
|
- build-tools-26.0.2
|
2017-09-27 07:25:11 +00:00
|
|
|
- android-26
|
2016-10-09 10:28:16 +00:00
|
|
|
- extra-android-m2repository
|
|
|
|
|
2017-10-24 05:55:28 +00:00
|
|
|
# Install Android NDK (apparently there is no easier way to do this)
|
|
|
|
# https://github.com/travis-ci/travis-ci/issues/5395
|
|
|
|
before_script:
|
|
|
|
- curl -L https://dl.google.com/android/repository/android-ndk-r15c-linux-x86_64.zip -O
|
|
|
|
- unzip -q android-ndk-r15c-linux-x86_64.zip
|
|
|
|
- export ANDROID_NDK_HOME=`pwd`/android-ndk-r15c
|
|
|
|
|
2016-10-09 10:28:16 +00:00
|
|
|
# Install Golang
|
|
|
|
before_install:
|
2017-10-24 05:55:28 +00:00
|
|
|
- sudo add-apt-repository ppa:gophers/archive -y
|
2016-10-09 10:28:16 +00:00
|
|
|
- sudo apt-get update -qq
|
2017-10-24 05:55:28 +00:00
|
|
|
- sudo apt-get install golang-1.9-go -y
|
2016-10-09 10:28:16 +00:00
|
|
|
|
|
|
|
# Cache gradle dependencies
|
|
|
|
# https://docs.travis-ci.com/user/languages/android/#Caching
|
|
|
|
before_cache:
|
2016-11-26 04:44:40 +00:00
|
|
|
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
|
|
|
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
|
2016-10-09 10:28:16 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.gradle/caches/
|
|
|
|
- $HOME/.gradle/wrapper/
|
|
|
|
|
|
|
|
script:
|
2017-10-24 05:55:28 +00:00
|
|
|
- ./gradlew lintVitalRelease
|
2016-10-09 16:00:08 +00:00
|
|
|
- ./gradlew buildNative assembleDebug
|