-
Notifications
You must be signed in to change notification settings - Fork 19
/
.travis.yml
59 lines (50 loc) · 1.38 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
language: android
dist: trusty
sudo: required
jdk: oraclejdk8
env:
global:
- ANDROID_API_LEVEL=28
- ANDROID_BUILD_TOOLS_VERSION=28.0.3
- ANDROID_ABI=armeabi-v7a
android:
components:
- tools
- platform-tools
- tools
- build-tools-25.0.2
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- android-24
- android-22
- sys-img-armeabi-v7a-android-22
licenses:
- 'android-sdk-preview-license-52d11cd2'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
before_install:
- touch $HOME/.android/repositories.cfg
- yes | sdkmanager "platforms;android-28"
- yes | sdkmanager "build-tools;28.0.3"
- echo no | android create avd --force -n test -t android-22 --abi $ANDROID_ABI -c 32M
- emulator -avd test -no-skin -no-audio -no-window &
install:
- echo y | sdkmanager "ndk-bundle"
- echo y | sdkmanager --channel=3 --channel=1 "cmake;3.10.2.4988404"
- echo y | sdkmanager "lldb;3.1"
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
before_script:
- chmod +x gradlew
- ./ci/wait_for_emulator.sh
script: ./gradlew connectedCheck
after_success:
- bash <(curl -s https://codecov.io/bash)
- ./ci/release.sh