-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
32 lines (25 loc) · 1.03 KB
/
.travis.yml
File metadata and controls
32 lines (25 loc) · 1.03 KB
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
language: android # 声明构建语言环境
jdk:
- oraclejdk8
notifications: # 每次构建的时候是否通知,如果不想收到通知邮箱(个人感觉邮件贼烦),那就设置false吧
email: false
sudo: false # 开启基于容器的Travis CI任务,让编译效率更高。
android: # 配置信息
components:
- tools
- build-tools-25.0.1
- android-25
- extra-android-m2repository # Android Support Repository
- extra-android-support # Support Library
# cache between builds
cache:
directories:
- $HOME/.m2
- $HOME/.gradle
before_install:
- mkdir "$ANDROID_HOME/licenses" || true
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
before_deploy: # 部署之前
# 使用 mv 命令进行修改apk文件的名字
- mv app/build/outputs/apk/app-release.apk app/build/outputs/apk/buf.apk