forked from spotbugs/spotbugs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
114 lines (101 loc) · 7.67 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
language: java
sudo: false
dist: trusty
jdk:
- oraclejdk8
- oraclejdk9
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+OOVatCul1IJaTtf2pyyifLTNRntgl4C4ok57PN882lRp55/Ifmi+xbt3Nd7lM1Fpy2eDugK1UINmkjRQsyCZY3EVgcM/NkrMa6q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KovIOyqYsZ4bHHdwrx8Fp14lsqeMMTGNMMuZhtq4e2TOue47MBRd4s3U/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/9E4CDmbd25eYG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NceBCTxQrRt00y8f9p2VqqLG5lVZD1mnceIRgLWIkTiK/nxUqOh5IBpeyUF6Y9/uLKNeNn/5U11RnYL4O3XMICReBD/HcwW4hVTT+gAg8vNVVTuANbyG8AcsWGTF0Yck52W8DK9j07vGIeqgqDetvmh+a+hvCwsfpM9Wl0sv5lx7iim9VSE2DappFDaWKRF8ixGvjndL8Up8yCsfdJPYVafH81Ybv+Fd5GQX59Q5GIQs2IYFZ7312wzRswFfy5j1Hn74cnQWInxtbn7SXVaRj5CswEFearua38KDjkrx0GY1pt3ypbjf//kkgPmjRj8PRtPe/SEuZvCWlqBOym8QkZ2mIhiPn+pz6RO+mNRll5bmAaOtHLLkcIziMuFD7fi1YrCtCuY3PKiW0Xt7NHQQlD+y6X3RK2qsV8txPGXZz3F2Cnk9GvJepQv14hbc8OKPtJdJG/2uaLUuDg="
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 secring.gpg.enc -out secring.gpg -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
script:
- jdk_switcher use oraclejdk8
- ./gradlew classes testClasses -S
- jdk_switcher use $TRAVIS_JDK_VERSION
- ./gradlew -v --no-daemon
- ./gradlew build smoketest -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: $TRAVIS_BUILD_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: $TRAVIS_BUILD_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: $TRAVIS_BUILD_DIR/eclipsePlugin/build/site/eclipse
repo: spotbugs/eclipse
email: [email protected]
on:
tags: true
jdk: oraclejdk8
condition: "$TRAVIS_TAG != *'_RC'*"
- provider: script
skip_cleanup: true
script: ./gradlew uploadArchives -PossrhUsername="$SONATYPE_USERNAME" -PossrhPassword="$SONATYPE_PASSWORD"
on:
branch: master
jdk: oraclejdk8
- provider: script
skip_cleanup: true
script: ./gradlew publishPlugins -Pgradle.publish.key="$GRADLE_PUBLISH_KEY" -Pgradle.publish.secret="$GRADLE_PUBLISH_SECRET"
on:
tags: true
jdk: oraclejdk8
- provider: script
skip_cleanup: true
script: ./gradlew uploadArchives -PossrhUsername="$SONATYPE_USERNAME" -PossrhPassword="$SONATYPE_PASSWORD" -Psigning.keyId="$SIGNING_KEY_ID" -Psigning.password="$SIGNING_PASSWORD" -Psigning.secretKeyRingFile="$TRAVIS_BUILD_DIR/secring.gpg"
on:
tags: true
jdk: oraclejdk8