forked from spotbugs/spotbugs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
139 lines (127 loc) · 7.61 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
language: java
dist: trusty
jdk:
- oraclejdk8
- oraclejdk11
matrix:
allow_failures:
- jdk: oraclejdk11
env:
global:
- SONAR_HOST_URL="https://sonarcloud.io"
# SONAR_LOGIN value
# please note this value is available for pull requests from the same repository only
# see https://docs.travis-ci.com/user/pull-requests/#Pull-Requests-and-Security-Restrictions
- secure: "FjzPYgjdN9WRvAwvJDFP0MqWMOsqCG0tNO6ts7X1p6HWikpoHnTqWgMl0YOgGK93trvB6vtIisZVVdLZG1rCwnXlO4Xd+6f+nhsJDledd9b4EePQPECJbHZZ8Hg69ATIlm7chll73GZzWTAL2Q3pIdsEJbwtqPzJ/j0H4COkayDeQ4ERA50pvvkXTiQrwxc5URrNH36ZOn10hfUEKO03EKbAlD+5dOzcxqu5WiS7j10zbMBCrKqhzN+zJQSOuDCTQz2S8McJBTiz4kMEBkF1q4Ax+1ywz2vICL3/F5/xqnHvHOk9wZE/4OOiNxjqxVd+Ik6LGE1BbLuATQz0Cmc3DiqsGYBsKtlk88v1QX2hsND/K0hwda/uItzbh95HmnrRYHYhzOcgcIVRqVwoPkYYWPYr9S2f3DGlFEnlGwJHgvqjuwMJaBmm2zblxPammEx3XoWqrKQ7RrelH1tUTWXy/tRss4Fof+D33/NJqa71Xvph1meKMcu+OOVatCul1IJaTtf2pyyifL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2KfSRwW24KMS7J1pvX4li7423OLUuZusICIPWB74AcoE0hrtsF2GK7MjXDvRhKovIOyqYsZ4bHHdwrx8Fp14lsqeMMTGNMMuZhtq4e2TOue47MBRd4s3U/N8a5wJzmlFagW+Zrr/2fbvfXEmn0PLoTMYbSLNq4XJqawYPBCk1Cf8OeYeQki/msUQxx8RYQxuS1mmtUnl6+4JzJ42/lMRuLWm5Pb4St1lZV4G58luh2/7DItUKpLm9qGZ3AvmNGyRC1aEIoinC43ZTpDJalmKHLk3JXbvCH/fLrTLz4cxX+5Wfo1NvOVZGXcMM5Wmcp9+mOSFBRkIq4Bjo+WvIE/QKdn8JoJHUZIKwviRZbocjAuBp0JCoaWSWYuBBlauQLrUpc2oLAjql2Pxyn5E2AfnvE6lZh5RSQ8cqvheM9LaXBGd2PualqWsHkJSugqGd7AiKmiAotGtWZPWtlje3NW7bL6AMT6d8GTYmSRKKuUFISKU3sqzV2s="
# GITHUB_TOKEN value to push changes to GitHub; Currently it is ued to update gh-pages branch of spotbugs/eclipse-latest etc.
- secure: "dFmNTEiYr0XHd2Zoj95j1xqoawNIrN63pgvHwKWf5ngNkncxLukKu1nGvvt9Fbw4/Embgzvz2GRwxWJBu5//yKrUHD9ILBS78Sn8nxpba7wHE6r8k6m+u7dOeN4jEH1fzyzsniSq939S6uB8gvfhhikddh9oZzwZnMq1YVyHQaWzbcaUnom+cwndKfK+YXg5mkt5Z92uXkJjGqd36FPA3GrlGJH7kXgWhVXI7Vds2hHsX/IBG0/2ZDhKNSZ8AiaDU4g2pSBlqA7F/noFW68hpohz9AAjku2COmpK0Ojd/iE0bVclXHYzs2aZq3lvYb3gv0dTEJrcIwPlDKQZWaEV/SxX9nIOqL5Q6XeVigTmnKkivQQ/b0hMPEpeHVvipMETYVzDvFT0qatLX/gUsiLgRPilWu0imFvNY4YAPZK3UPBSL5g+/8DzDPmTMZiOqJTMuMr+r/c7ch8qfjoaibc6LqUSJYLxyfk3NeturoviPLiBBtoadNsLPddtsNE8MZhr9lwRefNXY/VPBUxi7Bpxo7KfZ0BDSTzKeW7AEm/9E4CDmbd25eYGdvfVFeElGt5iTAfwIBYhj/GDkqnjesNCyDeNry/NywnEigkZQ4gzIvkHDkevUFs19nSspBmxiK82doY/j9Q0/TAK30mIdhg8VQwmkq5AYVIcN8kCu8WBhxw="
addons:
apt:
packages:
- oracle-java8-installer
- oracle-java8-set-default
before_install:
- mkdir -p deps
# In forked repository, encrypted environment variable is undefined. We need to skip this decryption.
- if [ -n "$encrypted_05a1b17af1e9_key" ]; then openssl aes-256-cbc -K $encrypted_05a1b17af1e9_key -iv $encrypted_05a1b17af1e9_iv -in .travis/secring.gpg.enc -out secring.gpg -d; fi
- if [ -n "$encrypted_00ea871ed050_key" ]; then openssl aes-256-cbc -K $encrypted_00ea871ed050_key -iv $encrypted_00ea871ed050_iv -in .travis/spotbugs.jks.enc -out spotbugs.jks -d; fi
install:
- if [[ ! -e deps/eclipse-SDK-4.6.3-linux-gtk-x86_64.tar.gz ]]; then wget 'https://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops4/R-4.6.3-201703010400/eclipse-SDK-4.6.3-linux-gtk-x86_64.tar.gz&r=1' -O deps/eclipse-SDK-4.6.3-linux-gtk-x86_64.tar.gz; fi
- rm -rf eclipse
- tar xzvf deps/eclipse-SDK-4.6.3-linux-gtk-x86_64.tar.gz eclipse
- echo eclipseRoot.dir=$(pwd)/eclipse > eclipsePlugin/local.properties
- echo ossrhUsername=eller86 >> gradle.properties
- echo "ossrhPassword=${SONATYPE_PASSWORD}" >> gradle.properties
- echo "signing.keyId=${SIGNING_KEY_ID}" >> gradle.properties
- echo "signing.password=${SIGNING_PASSWORD}" >> gradle.properties
- echo signing.secretKeyRingFile=${TRAVIS_BUILD_DIR}/secring.gpg >> gradle.properties
- echo "keystorepass=${KEYSTORE_PASS}" >> gradle.properties
script:
- jdk_switcher use oraclejdk8
- ./gradlew classes testClasses -S
- if [[ $TRAVIS_JDK_VERSION == "oraclejdk11" ]]; then export JAVA_HOME=$HOME/oraclejdk11; fi
- ./gradlew -v --no-daemon
- ./gradlew build smoketest -x signArchives -S --no-daemon
- jdk_switcher use oraclejdk8
- if [[ $TRAVIS_JDK_VERSION == "oraclejdk8" ]]; then ./gradlew sonarqube -S; fi
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/
- deps/
deploy:
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: eclipsePlugin/build/site/eclipse-daily
repo: spotbugs/eclipse-latest
email: [email protected]
on:
branch: master
jdk: oraclejdk8
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: eclipsePlugin/build/site/eclipse-stable-latest
repo: spotbugs/eclipse-stable-latest
email: [email protected]
on:
branch: release-3.1
jdk: oraclejdk8
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: eclipsePlugin/build/site/eclipse-candidate
repo: spotbugs/eclipse-candidate
email: [email protected]
on:
tags: true
jdk: oraclejdk8
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: eclipsePlugin/build/site/eclipse
repo: spotbugs/eclipse
email: [email protected]
on:
tags: true
jdk: oraclejdk8
condition: "$TRAVIS_TAG != *'_RC'*"
- provider: releases
api_key: $GITHUB_TOKEN
file: "eclipsePlugin/build/distributions/eclipsePlugin.zip"
skip_cleanup: true
on:
tags: true
jdk: oraclejdk8
- provider: script
skip_cleanup: true
# wait until uploading task finishes, because it may cost more than 10 minutes without any output
# https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received
script: .travis/travis_wait "./gradlew uploadArchives"
on:
jdk: oraclejdk8
branch: master
- provider: script
skip_cleanup: true
# wait until uploading task finishes, because it may cost more than 10 minutes without any output
# https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received
script: .travis/travis_wait "./gradlew uploadArchives"
on:
jdk: oraclejdk8
branch: release-3.1
- provider: script
skip_cleanup: true
# wait until uploading task finishes, because it may cost more than 10 minutes without any output
# https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received
script: .travis/travis_wait "./gradlew uploadArchives"
on:
tags: true
jdk: oraclejdk8