-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
45 lines (39 loc) · 1.33 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
language: android
android:
components:
- tools # to get the new `repository-11.xml`
- tools # see https://github.com/travis-ci/travis-ci/issues/6040#issuecomment-219367943)
- platform-tools
- build-tools-24.0.2
- android-24
- sys-img-armeabi-v7a-android-24
- extra-android-support
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
licenses:
- android-sdk-preview-license-52d11cd2
- android-sdk-license-.+
- google-gdk-license-.+
before_script:
- curl ${GOOGLE_SERVICES_JSON} -o app/google-services.json
- test -f local.properties.example && cp local.properties.example local.properties
- test -f local.properties && sed -i -e s/BINTRAY_APIKEY/${BINTRAY_APIKEY}/g local.properties
- test -f local.properties && sed -i -e s/BINTRAY_USER/${BINTRAY_USER}/g local.properties
- test -f local.properties && sed -i -e s/BINTRAY_GPG_PASSWORD/${BINTRAY_GPG_PASSWORD}/g local.properties
- echo no | android create avd --force -n test -t android-24 --abi armeabi-v7a
- emulator -avd test -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
jdk:
- oraclejdk8
os:
- linux
script:
- ./gradlew build connectedCheck
deploy:
provider: script
script: ./gradlew install bintrayUpload
skip_cleanup: true
on:
tags: true