-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
34 lines (30 loc) · 911 Bytes
/
.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
---
os: linux
dist: trusty
language: java
jdk:
- openjdk8
install: true
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
script:
- ./gradlew -PnewVersion="$TRAVIS_TAG" clean
- ./gradlew -PnewVersion="$TRAVIS_TAG" build
- ./gradlew -PnewVersion="$TRAVIS_TAG" check
- ./gradlew -PnewVersion="$TRAVIS_TAG" jacocoTestReport
# - ./gradlew sonarqube -Dsonar.login=$SONAR_TOKEN
after_success:
- bash <(curl -Ls https://coverage.codacy.com/get.sh)
- bash <(curl -s https://codecov.io/bash)
deploy:
cleanup: false
on:
tags: true
condition: "$TRAVIS_SECURE_ENV_VARS"
provider: script
script: ./gradlew -PnewVersion="$TRAVIS_TAG" publishPlugins -Pgradle.publish.key=$GRADLE_PUBLISH_KEY -Pgradle.publish.secret=$GRADLE_PUBLISH_SECRET