-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (36 loc) · 1.19 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
addons:
sonarcloud:
organization: "henryssondaniel-github"
token:
secure: $SONAR_TOKEN
before_install:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
- echo $secring_password | gpg --passphrase-fd 0 secring.gpg.gpg
- chmod +x gradlew
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.sonar/cache
git:
depth: false
if: tag IS blank
install: true
language: java
matrix:
allow_failures:
- jdk: openjdk-ea
include:
- jdk: openjdk11
env: FULL_RUN=true
- jdk: openjdk12
env: FULL_RUN=false
- jdk: openjdk13
env: FULL_RUN=false
- jdk: openjdk-ea
env: FULL_RUN=false
script:
- 'if [ "$FULL_RUN" = "false" ]; then ./gradlew clean build; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ "$FULL_RUN" != "false" ]; then ./gradlew clean build javadoc sonarqube; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$FULL_RUN" != "false" ]; then ./gradlew clean build sonarqube publish -Psigning.keyId=$keyId -Psigning.password=$password -Psigning.secretKeyRingFile=$secretKeyRingFile -PossrhUsername=$ossrhUsername -PossrhPassword=$ossrhPassword; fi'