-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
38 lines (33 loc) · 919 Bytes
/
.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
language: android
sudo: required
dist: trusty
jdk: oraclejdk8
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -rf $HOME/.gradle/caches/*/plugin-resolution/
- rm -rf $HOME/.android/build-cache/*
cache:
directories:
- '$HOME/.gradle/caches/'
- '$HOME/.gradle/wrapper/'
- '$HOME/.android/build-cache'
env:
global:
- ANDROID_API=29
- ANDROID_BUILD_TOOLS=29.0.3
android:
components:
- tools
- tools # Running this twice get's the latest build tools (https://github.com/codepath/android_guides/wiki/Setting-up-Travis-CI)
- platform-tools
- android-${ANDROID_API}
- build-tools-${ANDROID_BUILD_TOOLS}
- add-on
- extra
licenses:
- 'android-sdk-preview-license-52d11cd2'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
script:
- chmod +x ./gradlew
- "./gradlew :app:assembleDebug"# :app:assembleDebug 生成构建