-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
66 lines (61 loc) · 1.51 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
60
61
62
63
64
65
66
sudo: required
language: android
android:
components:
- tools
- build-tools-26.0.1
- android-19
- android-21
- android-22
- android-23
- android-26
- extra-android-m2repository
- sys-img-armeabi-v7a-android-19
- sys-img-armeabi-v7a-android-21
- sys-img-armeabi-v7a-android-22
jdk:
- oraclejdk8
cache:
directories:
- "$HOME/.gradle/caches/"
env:
matrix:
- API=android-19 ABI=armeabi-v7a
- API=android-21 ABI=armeabi-v7a
- API=android-22 ABI=armeabi-v7a
global:
- ADB_INSTALL_TIMEOUT=8
install: true
script:
- ./gradlew generateJavadocsJar
- ./gradlew generateSourcesJar
- ./gradlew generatePomFileForAarPublication
- ./gradlew build jacocoTestReport
- ./gradlew generateReleaseJavadoc
- echo no | android create avd --force -n test -t $API --abi $ABI
- emulator -avd test -no-skin -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
after_success:
- bash <(curl -s https://codecov.io/bash)
- .utility/push-javadoc-to-gh-pages.sh
deploy:
- provider: releases
api_key: $GITHUB_TOKEN
file:
- $TRAVIS_BUILD_DIR/library/build/outputs/aar/library-debug.aar
- $TRAVIS_BUILD_DIR/library/build/outputs/aar/library-release.aar
skip_cleanup: true
on:
tags: true
repo: watson-developer-cloud/android-sdk
condition: "$API = android-19"
- provider: bintray
file: $TRAVIS_BUILD_DIR/descriptor.json
user: milbuild
key: $BINTRAY_KEY
skip_cleanup: true
on:
tags: true
repo: watson-developer-cloud/android-sdk
condition: "$API = android-19"