185 Commits

Author SHA1 Message Date
Andreas Dangel
6aa77ce3e4 travis: run install before building site docu 2017-05-20 23:02:22 +02:00
Andreas Dangel
fb56643590 Fix travis build for releases (refs #376) 2017-05-20 11:17:35 +02:00
Andreas Dangel
050e659c68 Fix travis build, part 5 (refs #376) 2017-05-20 11:09:54 +02:00
Andreas Dangel
eb0ddfcf2b Fix travis build, part 4 (refs #376)
Now, a push is a push
2017-05-20 10:43:14 +02:00
Andreas Dangel
120c7cc1ff Fix travis build, add more info during build (refs #376) 2017-05-20 10:30:57 +02:00
Andreas Dangel
64eac02bbd Fix travis build, part 3 (refs #376) 2017-05-20 09:59:30 +02:00
Andreas Dangel
8ef25e839c Fix travis build, part 2 (refs #376) 2017-05-20 09:55:09 +02:00
Andreas Dangel
adced2dd26 Restructure travis build scripts, so that we have 3 steps, that can
run in parallel:
* build-deploy.sh
* build-site.sh
* build-sonar.sh
2017-05-15 21:11:43 +02:00
Andreas Dangel
39eb79f58e Fix build determining current version
Only take the last line of the output. Current maven wrapper
will output the current directy, later versions of the wrapper
will output the wrapper version.
2017-05-05 12:22:55 +02:00
Andreas Dangel
767eea8b4e travis release script - fix missing escape for backslash, refs #324 2017-05-05 11:37:56 +02:00
Andreas Dangel
aba44a8824 Make travis to use maven wrapper, too
refs #377
2017-05-05 11:37:51 +02:00
Andreas Dangel
536280bb98 travis build: fix escaping of double quotes
closes #324
2017-04-14 11:50:37 +02:00
Andreas Dangel
14428ed3bf Improve release notes upload to github 2017-03-03 15:42:10 +01:00
Andreas Dangel
a55e88c413 Use sparse checkout for pmd.github.io 2017-03-03 15:41:23 +01:00
Andreas Dangel
9388ce551e Travis - redirect output of sonar build into file 2017-02-27 20:43:37 +01:00
Andreas Dangel
d8a367187c Travis - only run "mvn deploy", when it should be run 2017-02-27 20:43:37 +01:00
Andreas Dangel
a39561df5f Setup the secrets only for non-pull-request builds when we have the
secure environment variables
2017-02-27 20:43:37 +01:00
Andreas Dangel
2196924b7d Specify branch name when pushing, make commit quiet 2017-02-25 21:38:42 +01:00
Andreas Dangel
6e4a5aef0e Fix condition for when to upload the binaries to sourceforge
Travis builds each commit during the release process: this means,
the commit on the branch, which changes the version to a non-
SNAPSHOT version, is also built. And after that, the tag is built.
Therefore, we upload, when we build SNAPSHOTS or when we build from a
tag.
2017-02-25 21:29:45 +01:00
Andreas Dangel
fcc515902c Add json request in output in case of error
Fix release script
2017-02-25 21:12:18 +01:00
Andreas Dangel
d8ee6717ee Travis Build fixes
* Do only perform a release, if building from tag
* Add missing git config
* Output github releases request in case of error
2017-02-25 20:06:30 +01:00
Andreas Dangel
8eeb0f25c7 Update github release data after deploy step with name + changelog 2017-02-25 17:38:05 +01:00
Andreas Dangel
03b39acd0b travis: add files and repo configuration for releases, upload pmd.github.io 2017-02-25 16:24:31 +01:00
Andreas Dangel
4d16c8d2d2 Log output of site building into file, to avoid travis log file limit
See also http://stackoverflow.com/questions/26082444/how-to-work-around-travis-cis-4mb-output-limit/26082445#26082445
2017-02-25 11:31:09 +01:00
Andreas Dangel
dea5babb94 Another approach to get the current version that is being built 2017-02-25 10:57:41 +01:00
Andreas Dangel
209c36e02c Move maven installation and configuration into separate script for travis 2017-02-25 10:57:14 +01:00
Andreas Dangel
4c33ac21f7 echo out the current version being built by travis 2017-02-25 10:07:12 +01:00
Andreas Dangel
6613a79429 Only rsync the snapshot site from master branch 2017-02-24 22:01:20 +01:00
Andreas Dangel
57049e0c15 Remove travis plugin to enable toolchain.
Remove duplicated server entry in settings.xml
2017-02-24 21:32:19 +01:00
Andreas Dangel
b6bd4c3c47 Use tar archive, since travis supports only one encrypted file 2017-02-24 20:36:45 +01:00
Andreas Dangel
597f598237 Reencrypt files for travis 2017-02-24 20:29:37 +01:00
Andreas Dangel
a0fe5222ad New travis build scripts
*   one for pull requests
*   one for pushes
*   one for releases
2017-02-24 20:10:22 +01:00
Andreas Dangel
a37381e756 Prepare travis environment:
*   configure maven
*   configure ssh key
*   configure gpg key
2017-02-24 20:10:22 +01:00
Andreas Dangel
32a56fd155 Use nexus staging profile, don't use oss-parent anymore 2017-02-24 20:10:22 +01:00
Andreas Dangel
4a73f1d4f1 Move travis specific files into own subdirectory .travis 2017-02-24 20:09:38 +01:00