forked from kontalk/androidclient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (47 loc) · 1.37 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
sudo: false
language: android
jdk: oraclejdk8
env:
global:
- ANDROID_TARGET=android-24
- ANDROID_ABI=armeabi-v7a
android:
components:
- tools
- platform-tools
- tools
- build-tools-26.0.2
- build-tools-27.0.1
# temporarly introduced to fix Cyanogenmod bug
# https://issuetracker.google.com/issues/64434571#comment35
- build-tools-27.0.3
- android-27
- extra-android-m2repository
- extra-google-m2repository
- extra-google-google_play_services
# for emulating
- android-24
- sys-img-${ANDROID_ABI}-${ANDROID_TARGET}
licences:
- 'android-sdk-license-.+'
before_install:
- yes | sdkmanager "platforms;android-27"
#before_script:
# - echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
# - emulator -avd test -no-skin -no-audio -no-window &
# - android-wait-for-emulator
# - adb shell input keyevent 82 &
# - adb shell setprop dalvik.vm.dexopt-flags v=n,o=v
script:
- ./gradlew clean build test jacocoTestReport
#- ./gradlew connectedCheck
after_success:
- bash <(curl -s https://codecov.io/bash)
before_deploy:
- openssl aes-256-cbc -K $encrypted_022658120507_key -iv $encrypted_022658120507_iv -in dist/googleplay-developer-key.json.enc -out dist/googleplay-developer-key.json -d
deploy:
skip_cleanup: true
provider: script
script: ./gradlew publish
on:
tags: true