forked from spotbugs/spotbugs-gradle-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (58 loc) · 3.76 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
61
62
63
64
65
66
67
language: java
dist: trusty
jdk:
- openjdk8
- openjdk11
env:
matrix:
- GRADLE_VERSION=default
- GRADLE_VERSION=5.2.1
- GRADLE_VERSION=5.3.1
global:
- SONAR_HOST_URL="https://sonarcloud.io"
# GITHUB_TOKEN value to push changes to GitHub; Currently it is ued to update gh-pages branch of spotbugs/eclipse-latest etc.
- secure: "IPHrqDG+j+hV9arSOwcu0YrUY+2SPODwLOFUI8SYGyvgO/y861G96UcqFy+v0DjhLQ7dnA1MFznP6rhqbdDYnSLwnO/0gbgMs+YAQFAG/u94aaIM5S8MrYJtqkZATrjLUn4sL2dXT3Vp6Ii3WWgdZ4EMFrDGCzB+f36KwR+AcoSqi296lwUEpSb4k52OWs0cmEj82rz0ZzMNMGQKKlBsHdJJ++XQuWfcECuc4Ck0bvNIg8wA4HYq+qbZoVAwZZKblLQkoqj2aZJgsXpECCSAdTOYtauA/iZE2g9uHYvd7aUIfXEfi9jZQEk+lpNLsMDESobAW5f8mOtHhGgExw+ONrfFzXqZ9eabIC04wj+mBQZvvl+QjsP1wUwGQKIlCN8lMBai9he7yBp1P2CB9TB3N1OBEhZv26Z+HO5eLX68EnsiEm+L6te0YwRettNdwXzyR23sGE4tFX/VNmuaXhOZL4Glh33yIIK8CXH7y9GSgHq9mxKDy3qwqQvGuiQ/Pnhe2gmEYeK5gDPxvdGRNERTS2yJKhYgGOn+cH5xST4lUNX6A6UPCMLAMwHLDDNRGQSOqhOp36o7uS+7omBP79LhA+fKD43AhlkH8j/cUfy3ZeqcZh4FeSbi+2nKjwaDKeClecvQ/SudnbuyqV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2k3Ni8yl1k+1DMlS03EfaKXCoo2DiAScTc6D+dgMHvN3vvauMQDa/6bW6QxS00OmHcEyzwOOtUEpsu7qLm4qW47hzjDWP/NILQwsbtFWA1FjydnCcxsj9lV9nkDFK6rWml/V/z5NI0zkTqTbucLyKITp7pxZ0cLwjxUv7bQeT+yTZKFrBrvGa+Gk9BFolckIjQQGOlO40gATfsmdsq6Fx3LB8aJ32UstS1RLCmVn4BpeK/Mqg/23ivqko2nbxY7x1dDCxAMlPrjAe7swzKVdQlXMQ6Sf+fU8Ql1lBf6EZ2OzDZEiSwgcPzIFV7gqcrE/3Uq/vMFG46zTXymIDPtzMugp5HrhxjbqP8IGYZZ5lQ="
addons:
sonarcloud:
organization: "spotbugs"
install:
- if [[ $GRADLE_VERSION != "default" ]]; then ./gradlew wrapper --gradle-version $GRADLE_VERSION; fi
script:
- jdk_switcher use openjdk8
- ./gradlew classes testClasses -S
- if [[ $TRAVIS_JDK_VERSION == "openjdk11" ]]; then export JAVA_HOME=$HOME/openjdk11; fi
- ./gradlew -v --no-daemon
- ./gradlew check -S --no-daemon
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/
jobs:
include:
- stage: analyze
script: ./gradlew sonarqube -S
if: fork == false
- stage: deploy
name: Deploy to Gradle Plugin Portal
script: skip
if: tag IS present
deploy:
- provider: script
script: ./gradlew publishPlugins -Pgradle.publish.key="$GRADLE_PUBLISH_KEY" -Pgradle.publish.secret="$GRADLE_PUBLISH_SECRET"
on:
tags: true
- name: Deploy to Sonatype Snapshot Repository
script: skip
if: (branch = master) AND (type = push)
deploy:
- provider: script
script: ./gradlew uploadArchives -PossrhUsername="$SONATYPE_USERNAME" -PossrhPassword="$SONATYPE_PASSWORD"
on:
branch: master