-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
60 lines (55 loc) · 4.11 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
language: android
android:
components:
# Updates Android SDK Platform-Tools and Android SDK Tools to latest version
- tools
- platform-tools
# Installs the target Android SDK Build-Tools and Android SDK Platform
- build-tools-28.0.2
- android-28
branches:
only:
- master
- /\d+\.\d+\.\d+.*/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
env:
global:
# BINTRAY_USER
- secure: z+BkrsOHtyTthFZRLMFx0uJuiQumjFVYZ/b95+4CgfbYXdE77Upv3ZVZZHahDd+/yCcuzKS6B8a3iiiXP+mrZmPZUcY4B8DOmCkMn40ZqKi1gSifOzTkH1InLad2nJ+Y8daQ2P091u9wafNJjDlVWAc5/rcMyPy5JTHJsWrd/8pRkngkUNVYTB4oysapZv6tt8dx+AbS/PcV49eVRBlo25dL9OYzCtr4ypwAsPB5GS+vaHjo3JnywZeyAHIKg3emips5eKxj3/r1oLO9TO7pou94SHxJ34rom7jq24gVZysiySSx3xaYc+ncyaj8Hljl5EqE7H3sw1sbUeswxQPuny5t1Yz1AWQBSfs1iXAnkjcGjdde6LAkotS/HVqlzHSTMsDfHInT9rhasXY9eshESl8x5mHbtGG3wQJuFm5v8rWG6kCd1mgGQy4hwaaVK0JKmtGMFCp9bqZaWaWo1wvRVBxoIYwfaAHD+LwDxz6/VIWqc1eyuzutoro5UxfNiZ41FOgv6trZp2y5M5q/RigplFIMdjItqkTexUgLHI3lNg6YNlFsypThw841yFRFWlhpTeK+Y7PvqvaVaM7csh6Lj+8v6HY8vXHPFBdII7Aj6XixGkjTmDFG4WaomDVkV8Obm48WvJ9RxT7BUh5m8eoQ/gCAncn2ZJSltPiz4xn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869KmbkK8YxCPwCThyEaBWYxFaxzDXrYKpo/HYEIv/KswsCHPS7msyZDlQyggj5s4oN24UVIi+VGI5+uATwfbAR7/TgaWDR4pbS4ZNFUXfzvoON9C6TU/8eN0We2o7hDZBGZwgoRUnsBUHkl7VU5YZWCT9pGDxWYN8dRrbtAXzLQa9ITFaMN3ohgvaJMg8souTtlgoXXBfEMGsflK8FB7I2H9V640TaDQEf3LbY4Aw4TTc3f0BZjYhW/N5QZgGKwcX3JG9qjQP++S1ct59NnoF0/Bjjl+wYysqHHwWluHA0ks6STvNHDwv9dgg1e+OLtM36KjEK9bgIU/AbRhk4=
jdk: oraclejdk8
os:
- linux
sudo: false
script:
- if [ ! -z "$TRAVIS_TAG" ]; then ./gradlew clean zapic:assembleRelease zapic:bintrayUpload; fi
- if [ -z "$TRAVIS_TAG" ]; then ./gradlew clean zapic:assembleRelease; fi
before_deploy:
- cd "$TRAVIS_BUILD_DIR/zapic/build/outputs/aar/"
- mv ./zapic-release.aar ./com.zapic.sdk.android.aar
- zip "Zapic-SDK-Android-$TRAVIS_TAG.zip" ./com.zapic.sdk.android.aar
- mv "Zapic-SDK-Android-$TRAVIS_TAG.zip" "$TRAVIS_BUILD_DIR/"
- cd "$TRAVIS_BUILD_DIR/"
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
deploy:
provider: releases
api_key:
secure: g4ACNdWiJ3GF3OA6VnqxAApfV8e3qs1A6PgyytmNuoPyPEapTCtGupxiMZKbRt5kgevWtpu3y3YziGGK6Du9tXgPc/T6DN/+mzYPgZO8zHQDVDnR9unkk7/PunH0PL16jEa8eo0I4OkVxZLVS5byjjRJrYy1nDKj4QRX49wuOFc2vQft3/HCHIIjhpJprWpDe2t/9qbi8ETfeT8qW5mR3jACC54lfOeIK1HH9dlogX3XT11AY0g3aqUtix5QMam8BIzPoEPa7iqERugQnAJ7lkijmurToqHG6WeHPvlYiPzCLiVQj0mYSQ6wVaa3sdbwJhBy/XF5Oggkjh06EOt/Fuwt8+/Lt2tfJ8TlIUVZLxDr583eSUwUlUrM0+lVWdZ9jyMCQiEaEtT4XGWb+5RqK0rwwdQskvmudcA2vLe/HQydt6nnkkR9Cy4o9hmGcAqNCTAR3Gl/uyeANNuuu6gIh66VuWZABHIWVtIK6fPwDBdRjGuX5/xoN9nWKfbCVzV97MtJk2aiU4OLtztoFyDlPc2t76vNsCPmpdPiBU6LVeacbzex56f1PuBmAxLs9DYWV10gKn4z14AygiFkyw2sJGarrnt58ANNJFALWNG18fiZEJ5qXW9w0wQ2lKmc2EaxuPSmDV7gZ6wf0eP0DF+Hh+cepghDDqfN6uPVSSbQuNU=
file: "Zapic-SDK-Android-$TRAVIS_TAG.zip"
skip_cleanup: true
tag_name: $TRAVIS_TAG
target_commitish: $TRAVIS_COMMIT
name: $TRAVIS_TAG
draft: true
on:
repo: ZapicInc/Zapic-SDK-Android
tags: true