-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (64 loc) · 1.78 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
language: android
sudo: false
dist: precise
jdk:
- oraclejdk8
addons:
apt:
packages:
- oracle-java8-installer
env:
global:
- SDK_VERSION=28
- GRADLE_USER_HOME=$HOME/.gradle
matrix:
- ANDROID_API=16 ANDROID_ABI=armeabi-v7a ANDROID_TAG_EMULATOR=default ANDROID_TAG_COMPONENT=android
after_success:
- "./gradlew crashlyticsUploadDistributionRelease"
- "./gradlew generateReleaseJavadoc"
before_script:
- git tag "1.0.$TRAVIS_JOB_NUMBER"
- git log -1 --oneline > release_notes.txt
- chmod u+x gradlew
- echo no | android create avd --force -n test -t android-$ANDROID_API --abi $ANDROID_ABI
--tag $ANDROID_TAG_EMULATOR
- emulator -avd test -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
#cache:
# apt: true
# directories:
# - "$HOME/.gradle/caches/"
# - "$HOME/.gradle/wrapper/"
# - "$HOME/.android/build-cache"
# - "$TRAVIS_BUILD_DIR/gradle/caches/"
# - "$TRAVIS_BUILD_DIR/gradle/wrapper/dists/"
# - "$TRAVIS_BUILD_DIR/android-sdk/extras/"
android:
components:
- tools
- platform-tools
- tools
- extra
- android-$SDK_VERSION
- sys-img-$ANDROID_ABI-$ANDROID_TAG_COMPONENT-$ANDROID_API
- build-tools-$SDK_VERSION.0.2
- extra-android-support
- extra-android-m2repository
- extra-google-m2repository
licenses:
- android-sdk-preview-license-52d11cd2
- android-sdk-license-.+
- google-gdk-license-.+
- build-tools;.+
- platforms;android-.+
before_install:
- openssl aes-256-cbc -K $encrypted_cc11b8c8835f_key -iv $encrypted_cc11b8c8835f_iv
-in key.jks.enc -out key.jks -d
- yes | sdkmanager "platforms;android-27"
script:
- "./gradlew clean --refresh-dependencies"
- "./gradlew build --refresh-dependencies"