1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-23 04:41:16 +00:00
syncthing-android/.travis.yml

42 lines
1.1 KiB
YAML
Raw Normal View History

2016-10-09 10:28:16 +00:00
language: android
jdk: oraclejdk8
dist: trusty
2016-10-09 10:28:16 +00:00
# Install Android SDK
android:
components:
- tools
- platform-tools
2017-12-26 18:47:23 +00:00
- build-tools-27.0.2
- android-27
2016-10-09 10:28:16 +00:00
- extra-android-m2repository
# 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
before_install:
2018-02-21 18:27:42 +00:00
# Install Go using gimme tool
- curl -sL -o ~/bin/gimme https://raw.githubusercontent.com/travis-ci/gimme/master/gimme
- chmod +x ~/bin/gimme
- eval "$(gimme 1.9)"
# Hack to accept Android licenses
- yes | sdkmanager "platforms;android-27"
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:
- ./gradlew lint
- ./gradlew buildNative assembleDebug