180 Commits

Author SHA1 Message Date
Andreas Dangel
4cf9f5904a [core] Fix java7 compatibility
* Scala also requires java8 and it failed indirectly via a
  ServiceConfigurationError while discovering the language.
  Scala's dependencies require java8.
* Downgrade JCommander for java7 compatibility
* Downgrade commons-text for java7 compatibility
* Add integration test
2020-08-01 17:53:45 +02:00
Andreas Dangel
8a7ec4b4e3 [ci] Avoid bundle warnings about --path 2020-07-31 14:08:20 +02:00
Andreas Dangel
59acd6d969 Revert "Use xmlint to get the pom version"
This reverts commit 34f185b03a41e5df1ed52897cf279c0607dee181.
2020-07-16 18:46:40 +02:00
Andreas Dangel
34f185b03a Use xmlint to get the pom version 2020-07-16 18:21:26 +02:00
Andreas Dangel
bb005ea5d4 Refactor exec-maven-plugin version and usage 2020-07-16 18:21:26 +02:00
Artem Krosheninnikov
2b882e8655 fix issue #2594, update exec-maven-plugin everywhere 2020-06-18 00:48:57 +03:00
Andreas Dangel
425a45a006 [scala] Fix javadoc generation and upload
Due to the different project structure, the paths need
to be adjusted
2020-06-07 12:31:47 +02:00
João Ferreira
f4880f9318 refactor scala modules configuration 2020-05-31 11:59:44 +01:00
João Ferreira
867f8b2adf fix project name 2020-05-27 20:41:18 +01:00
João Ferreira
9c632dcd83 Cross compile pmd-scala module 2020-05-27 15:40:53 +01:00
Andreas Dangel
927745ae9c [ci] Skip regression-tester baseline creation on java-grammar branch
It takes too long, probably because the java rules are not updated
yet to the new java AST and therefore throwing lots of exceptions.
2020-04-25 09:33:37 +02:00
Andreas Dangel
f1410752bc [ci] Fixed style for pmd-lang-test 2020-04-14 17:51:21 +02:00
Andreas Dangel
727c398326 [ci] Upload docs and javadocs to https://docs.pmd-code.org 2020-04-14 17:19:13 +02:00
Andreas Dangel
a2a4027976 [ci] Fix github-releases-api script to preserve the tag_name
Obviously, when updating the release to add the release notes,
the tag_name gets lost, resulting in github creating a
"untagged_xyz" tag and not connecting the release to the correct
tag, although the commit matches.
2020-02-08 10:51:12 +01:00
Andreas Dangel
03b8f267e4 [ci] Fix release script
Now the correct target commitish value should be used
when creating a draft release
2020-01-24 18:49:35 +01:00
Andreas Dangel
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
Andreas Dangel
ca299178df [ci] Use sha1 of release tag for target_commitish when creating gh release 2019-12-07 14:38:02 +01:00
Andreas Dangel
226fa8e061 [ci] Fix missing shell functions 2019-11-28 19:53:20 +01:00
Andreas Dangel
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
Andreas Dangel
69008857d5 [ci] Refactor build-doc.sh
Split it into several functions, that are called from "main".
2019-11-11 19:34:58 +01:00
Andreas Dangel
226f78bf8a [ci] Refactor upload of documentation to sourceforge 2019-11-10 18:40:51 +01:00
Andreas Dangel
839968c95c [ci] Create regression-tester.sh 2019-11-10 18:40:51 +01:00
Andreas Dangel
f85d11fe8e [ci] Refactor sourceforge requests into sourceforge-api.sh 2019-11-10 18:40:51 +01:00
Andreas Dangel
fafb3e76b1 [ci] Create github-releases-api.sh 2019-11-10 18:40:47 +01:00
Andreas Dangel
fd52b4b8ea [ci] Add stage build and publish
Publish is executed after all build jobs are finished.
2019-11-10 18:40:30 +01:00
Andreas Dangel
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
Andreas Dangel
b0a854619c Revert "[ci] Fix build on travis when gpg tries to sign"
This reverts commit bb0813547cc85e2dd0b9c9f559c6620410ff058c.
2019-11-01 11:26:18 +01:00
Andreas Dangel
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
Andreas Dangel
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
Andreas Dangel
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
Andreas Dangel
c134f23d7c Move all doc checks into the profile "generate-rule-docs" 2019-10-26 11:52:20 +02:00
Andreas Dangel
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
Andreas Dangel
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
Andreas Dangel
2b66fb76cb Merge branch 'master' into travis-windows 2019-10-25 14:27:17 +02:00
Andreas Dangel
1209b162a9 [ci] Explicitly configure known_hosts for web.sourceforge.net 2019-10-24 20:29:16 +02:00
Andreas Dangel
ce05b1bbb6 [ci] Remove explicit ruby version, use the default 2019-10-18 19:48:14 +02:00
Andreas Dangel
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
Andreas Dangel
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
Andreas Dangel
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
Andreas Dangel
84c8e51913 Support openjdk11 for macosx as well 2019-04-27 17:39:50 +02:00
Andreas Dangel
cf4658fd3d Support openjdk11 for macosx as well 2019-04-27 17:20:05 +02:00
Andreas Dangel
32d0fd34a8 Support openjdk11 for macosx as well 2019-04-27 16:54:28 +02:00
Andreas Dangel
c9ec3ae63c Use openjdk 11.0.3 2019-04-27 16:22:21 +02:00
Andreas Dangel
bb071d68e2 [ci] Update release signing key 2019-03-30 18:56:59 +01:00
Andreas Dangel
916d55107c [ci] Sign also snapshot builds to test the release signing key 2019-03-30 18:49:51 +01:00
Andreas Dangel
d17668e38d [ci] Use travis wait for executing pmdtester
This is a workaround for pmd/pmd-regression-tester#60
We might also have now new rules which makes the whole PMD
execution take longer.
2019-03-08 15:29:46 +01:00
Andreas Dangel
9e8fc3f4a2 [ci] Release Notes are not generated and uploaded automatically
Fixes #1695

We need to call ruby via bundler to have all the installed gems available.
2019-02-25 20:12:45 +01:00
Andreas Dangel
dd66f9c5a2 [ci] fix path to travis_wait, more usages of travis_wait 2019-01-27 19:39:31 +01:00