Commit Graph

165 Commits

Author SHA1 Message Date
70f0597887 [ci] Update release signing key
New key: PMD Release Signing Key <releases@pmd-code.org>
0xD0BF1D737C9A1C22
Valid till 2020-12-15
2019-12-16 14:41:11 +01:00
ca299178df [ci] Use sha1 of release tag for target_commitish when creating gh release 2019-12-07 14:38:02 +01:00
226fa8e061 [ci] Fix missing shell functions 2019-11-28 19:53:20 +01:00
f7778d06b5 [ci] Not setting up gpg under Windows
Importing the release signing key will start the gpg-agent.
This background task then prevents travis-ci from terminating
the build job under Windows.

Since gpg is not needed for building PMD under Windows, I simply
don't import the keys.
Alternatively, running "gpgconf --kill gpg-agent" should also
work.
2019-11-28 19:47:33 +01:00
69008857d5 [ci] Refactor build-doc.sh
Split it into several functions, that are called from "main".
2019-11-11 19:34:58 +01:00
226f78bf8a [ci] Refactor upload of documentation to sourceforge 2019-11-10 18:40:51 +01:00
839968c95c [ci] Create regression-tester.sh 2019-11-10 18:40:51 +01:00
f85d11fe8e [ci] Refactor sourceforge requests into sourceforge-api.sh 2019-11-10 18:40:51 +01:00
fafb3e76b1 [ci] Create github-releases-api.sh 2019-11-10 18:40:47 +01:00
fd52b4b8ea [ci] Add stage build and publish
Publish is executed after all build jobs are finished.
2019-11-10 18:40:30 +01:00
bef59f1f1c [ci] Merge release.sh into build-{deploy,doc}.sh with manual github releases
A draft github release is created or the latest release is reused,
if it is a draft release.
Assets are uploaded, release notes are added.
The release is left in draft state.
2019-11-10 18:40:30 +01:00
b0a854619c Revert "[ci] Fix build on travis when gpg tries to sign"
This reverts commit bb0813547cc85e2dd0b9c9f559c6620410ff058c.
2019-11-01 11:26:18 +01:00
bb0813547c [ci] Fix build on travis when gpg tries to sign
See https://unix.stackexchange.com/questions/257061/gentoo-linux-gpg-encrypts-properly-a-file-passed-through-parameter-but-throws-i/257065#257065
GPG_TTY needs to be set for gpg to work properly.
It seems that with the switch to travis/bionic, this env variable
is not set anymore automatically
2019-11-01 11:02:31 +01:00
7f31ad186b [ci] Prevent doc build from deploying the binary distribution
The documentation build should only deploy the pmd-doc*.zip
artefacts and not more.
2019-10-26 12:00:41 +02:00
6e6adb9710 [ci] Generate the rule documentation also for pull requests
This will execute the DeadLinksChecker and RuleTagChecker
after the rule documentation has been generated.
2019-10-26 11:56:06 +02:00
c134f23d7c Move all doc checks into the profile "generate-rule-docs" 2019-10-26 11:52:20 +02:00
4ee8e65417 Upload release notes with the "docs" build.
The github release is first created as a draft, when we edit
the release notes, we publish it (draft=false), so that the
release notification mail contains the full release notes.
2019-10-26 11:52:20 +02:00
7ae9247518 Generate rule docs only with maven profile "generate-rule-docs"
For travis build, PMD needs to be built now before jekyll can
generate the documentation.
In the main build, rule docs are not committed anymore.
2019-10-26 11:51:33 +02:00
2b66fb76cb Merge branch 'master' into travis-windows 2019-10-25 14:27:17 +02:00
1209b162a9 [ci] Explicitly configure known_hosts for web.sourceforge.net 2019-10-24 20:29:16 +02:00
ce05b1bbb6 [ci] Remove explicit ruby version, use the default 2019-10-18 19:48:14 +02:00
c3409c4aa7 [ci] Download openjdk from https://pmd-code.org/openjdk/
* Note: Download is only possible from travis
* Make openjdk version configurable in .travis.yml
* Skip download, if already downloaded
2019-10-18 19:47:18 +02:00
23109d7b69 [ci] Add travis build on windows
* New parallel build for windows
* New before_install.sh script that prepares java, maven, ruby
2019-10-18 19:47:13 +02:00
ddb60b0163 [ci] Upgrade to AdoptOpenJDK 11.0.4 B11 2019-07-20 10:30:30 +02:00
BBG
bf70954698 [ci] create a corresponding travis remote branch locally 2019-05-05 14:59:25 +08:00
BBG
2057fc3919 [ci] fix missing local branch issues 2019-05-02 00:01:23 +08:00
84c8e51913 Support openjdk11 for macosx as well 2019-04-27 17:39:50 +02:00
cf4658fd3d Support openjdk11 for macosx as well 2019-04-27 17:20:05 +02:00
32d0fd34a8 Support openjdk11 for macosx as well 2019-04-27 16:54:28 +02:00
c9ec3ae63c Use openjdk 11.0.3 2019-04-27 16:22:21 +02:00
bb071d68e2 [ci] Update release signing key 2019-03-30 18:56:59 +01:00
916d55107c [ci] Sign also snapshot builds to test the release signing key 2019-03-30 18:49:51 +01:00
d17668e38d [ci] Use travis wait for executing pmdtester
This is a workaround for 
We might also have now new rules which makes the whole PMD
execution take longer.
2019-03-08 15:29:46 +01:00
9e8fc3f4a2 [ci] Release Notes are not generated and uploaded automatically
Fixes 

We need to call ruby via bundler to have all the installed gems available.
2019-02-25 20:12:45 +01:00
dd66f9c5a2 [ci] fix path to travis_wait, more usages of travis_wait 2019-01-27 19:39:31 +01:00
b0eb46379e [ci] Fail the build if uploading the baseline fails 2019-01-27 18:31:21 +01:00
017b6c3275 [ci] use travis_wait while uploading to sourceforge 2019-01-27 18:30:57 +01:00
09c0e298f4 Use travis_wait from https://github.com/m3t/travis_wait
since it's not available in deploy phase on travis
2018-12-09 11:01:26 +01:00
1f76eb062c Also checkout /sitemap.xml during release
Fixes 
2018-11-25 14:37:54 +01:00
5fb0cf576b Releasable 2018-11-14 22:30:00 +01:00
39f87ca5f3 Update schema location in rulesets 2018-10-27 21:02:16 +02:00
e58ad9ef84 [ci] Install bundles into vendor/bundle, fix bundle config when calling pmdtester 2018-10-07 10:57:39 +02:00
a8683e18a8 [ci] call pmdtester via bundler
Since we are in a different directory than we were when installing
the gems, we need to setup bundle path before.
2018-10-06 20:23:03 +02:00
4df81222ff Add more logging during release 2018-09-30 11:26:26 +02:00
848a0761fe Fix release scripts
* fix language var LANG
* fix bundle install command
* automate creation of release notes post in pmd.github.io
* add var "is_release_notes_processor"
* Always install the gems for rendering release notes
2018-09-02 15:31:01 +02:00
acdab9df56 [ci] Fix java10 installation for sonar 2018-09-02 12:31:11 +02:00
7a8847bacb [ci] Fix sonar configuration
For now, we need to use java10 with sonar, until sonarjava 5.8.0
is released, which adds support for java11.
Apparantly sonar also loads the classfiles and can't yet load
java11 classes, leading to many errors
"Unsupported class file major version 55" while analyzing
the project.

Also update SONAR_TOKEN

See https://jira.sonarsource.com/browse/SONARJAVA-2877
2018-09-02 12:15:45 +02:00
c9f686903e [ci] Coveralls hasn't built the project since June 25th
The previous fix was not enough. Coveralls maven plugin depends on
javax.xml.bind, which has been removed with JDK11, since it is
a EE feature.

Workaround is now, to add the jaxb-api as a plugin dependency, so
that the utility class javax.xml.bind.DatatypeConverter is
available.

Fixes 
2018-09-02 10:53:02 +02:00
921d4190d7 [ci] Coveralls hasn't built the project since June 25th
Fixes 
2018-09-01 23:15:29 +02:00
2264d3c964 [ci] Fix sonar / coveralls build after switching to jdk 11
Also update jacoco plugin to 0.8.2
2018-09-01 23:11:12 +02:00