forked from MarathonLabs/marathon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (54 loc) · 1.77 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: java
jdk:
- openjdk8
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/
before_install:
- docker pull axiom/rsync-server
- echo -e "Host localhost\n\tStrictHostKeyChecking no\n" >> $HOME/.ssh/config
- echo 'localhost ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBMaFQFXjCQRbvc8XQpz3DZHF/spSHqqpfNgiFp+KUHtaysaHn2kpx2dpurkx7TvM9bxBgxoNj4WNwce4UqwJgSo=' >> $HOME/.ssh/known_hosts
jobs:
include:
- stage: test
script:
- chmod 0600 $TRAVIS_BUILD_DIR/vendor/vendor-ios/src/test/resources/fixtures/derived-data-manager/test_rsa
- ./gradlew clean test jacocoTestReport integrationTest
- bash <(curl -s https://codecov.io/bash)
- stage: detekt
script: ./gradlew clean detektCheck
- stage: deploy
script: skip
deploy:
- provider: script
script: bash .buildsystem/deploy-sonatype.sh
on:
branch: develop
- provider: script
script: bash .buildsystem/deploy-sonatype.sh
on:
tags: true
# - provider: script
# script: bash .buildsystem/deploy-github.sh
# on:
# tags: true
- stage: deploy-cli
script: ./gradlew :cli:assembleDist -PreleaseMode=RELEASE
before_deploy:
- rm -f cli/build/distributions/marathon-*-SNAPSHOT.zip || true
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