-
Notifications
You must be signed in to change notification settings - Fork 58
/
.travis.yml
37 lines (30 loc) · 823 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
# travis build for APhotoManager
language: android
jdk:
- oraclejdk8
addons:
apt:
packages:
# graphviz to render javadoc uml
# https://docs.travis-ci.com/user/multi-os/
- graphviz
android:
components:
# https://github.com/travis-ci/travis-ci/issues/5036
- tools
# values in gradle.properties and .travis must be the same
- build-tools-28.0.3
- android-23
- add-on
- extra
before_install:
# http://stackoverflow.com/questions/33820638/travis-yml-gradlew-permission-denied
# must execute
# git update-index --chmod=+x gradlew
# instead of
# - chmod +x gradlew
# https://stackoverflow.com/questions/52274229/travis-ci-android-28-licenses-have-not-been-accepted
# - yes | sdkmanager "platforms;android-28"
script:
- jdk_switcher use oraclejdk8
- ./gradlew assemble test