forked from MarathonLabs/marathon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
60 lines (54 loc) · 1.29 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
jdk:
- oraclejdk8
sudo: required
services:
- docker
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -rf $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
env:
global:
- ANDROID_API=26
- ANDROID_BUILD_TOOLS=26.0.2
android:
components:
- tools
- tools # Running this twice get's the latest build tools (https://github.com/codepath/android_guides/wiki/Setting-up-Travis-CI)
- platform-tools
- android-${ANDROID_API}
- build-tools-${ANDROID_BUILD_TOOLS}
- extra
jobs:
include:
- stage: test
script: ./gradlew clean test integrationTest
- stage: detekt
script: ./gradlew clean detektCheck
- stage: deploy
script: skip
deploy:
- provider: script
script: bash .buildsystem/deploy.sh
on:
branch: develop
- provider: script
script: bash .buildsystem/deploy.sh
on:
tags: true
- stage: deploy-cli
script: ./gradlew :cli:assembleDist
deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file: "cli/build/distributions/marathon-*.zip"
file_glob: "true"
skip_cleanup: true
on:
repo: Malinskiy/marathon
tags: true