mirror of
https://github.com/ankidroid/Anki-Android.git
synced 2024-09-20 12:02:16 +02:00
76b18e06ef
- fix api gradle deprecation, add warn comment in gradle wrapper - buildtools 27.0.3 needs to be added w/license accepted - install SDK API 16 to match emulator API 16, remove extra tools - tools components entry twice per Travis docs - only including build-tools 26.0.2 as it is default per my read - only including one android API for the build - removing non-existent extra-android-support - changing from API-22 emulator to API-16 per performance documentation on web - removing "no-skin" emulator argument as it is not supported - upgrade to gradle 4.5.1 / gradle plugin 3.1.2 - alter gradle dependencies to modern fine-grained declarations - move api build targetSdk to match main build targetSdk
49 lines
1.1 KiB
YAML
49 lines
1.1 KiB
YAML
language: android
|
|
sudo: false
|
|
env:
|
|
global:
|
|
- ADB_INSTALL_TIMEOUT=8
|
|
|
|
android:
|
|
components:
|
|
- tools
|
|
- platform-tools
|
|
- build-tools-27.0.3
|
|
# Android API-16 is required to use the emulator with API 16
|
|
- android-16
|
|
# Our current build target
|
|
- android-26
|
|
- extra-android-m2repository
|
|
# Android Emulator API 16 benchmarks as fastest:
|
|
# https://medium.com/zendesk-engineering/speeding-up-android-builds-on-travis-ci-1bb4cdbd9c62
|
|
- sys-img-armeabi-v7a-android-16
|
|
|
|
licenses:
|
|
- 'android-sdk-preview-license-.+'
|
|
- 'android-sdk-license-.+'
|
|
- 'google-gdk-license-.+'
|
|
|
|
jdk:
|
|
- oraclejdk8
|
|
|
|
# Emulator Management: Create, Start and Wait
|
|
before_script:
|
|
- echo no | android create avd --force -n test -t android-16 --sdcard 10M --abi armeabi-v7a
|
|
- emulator -avd test -no-audio -no-window &
|
|
- android-wait-for-emulator
|
|
- adb shell input keyevent 82 &
|
|
|
|
before_cache:
|
|
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.gradle/caches/
|
|
- $HOME/.gradle/wrapper/
|
|
|
|
script: ./gradlew :AnkiDroid:connectedCheck
|
|
|
|
notifications:
|
|
email:
|
|
- flerda+ankidroid-continuous@gmail.com
|