mirai/.travis.yml

43 lines
1016 B
YAML
Raw Normal View History

2019-12-15 14:59:21 +08:00
language: android
2019-12-15 15:57:29 +08:00
jdk: oraclejdk11
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:09:17 +08:00
- mkdir "$ANDROID_HOME/licenses" || true
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
2019-12-15 15:49:32 +08:00
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