mirai/.travis.yml

45 lines
892 B
YAML
Raw Normal View History

2019-12-15 14:59:21 +08:00
language: android
2019-12-15 15:57:29 +08:00
2019-12-15 16:24:01 +08:00
jdk: oraclejdk8
2019-12-15 17:00:02 +08:00
### need JDK11
2019-12-15 15:10:21 +08:00
2019-12-15 15:54:26 +08:00
env:
global:
- ANDROID_API_LEVEL=28
- ANDROID_BUILD_TOOLS_VERSION=28.0.3
- ANDROID_ABI=armeabi-v7a
2019-12-15 14:50:46 +08:00
2019-12-15 14:58:10 +08:00
android:
components:
2019-12-15 15:49:32 +08:00
- tools
- platform-tools
- tools
- extra-android-m2repository
2019-12-15 15:11:54 +08:00
licenses:
2019-12-15 15:49:32 +08:00
- 'android-sdk-preview-license-52d11cd2'
2019-12-15 15:11:54 +08:00
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
2019-12-15 14:41:51 +08:00
2019-12-15 15:49:32 +08:00
before_install:
- touch $HOME/.android/repositories.cfg
2019-12-15 16:25:45 +08:00
- yes | sdkmanager "platforms;android-28"
- yes | sdkmanager "build-tools;28.0.3"
2019-12-15 15:49:32 +08:00
2019-12-15 17:00:02 +08:00
### need JDK8( SDK manager thing)
2019-12-15 15:54:26 +08:00
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
2019-12-15 14:50:46 +08:00
2019-12-15 15:54:26 +08:00
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
before_script:
- chmod +x gradlew
script:
- ./gradlew clean build
- ./gradlew test