2017-02-21 20:20:29 +01:00
sudo : false
2015-09-25 11:50:09 +02:00
language : java
2017-02-20 18:46:22 +01:00
jdk : oraclejdk8
before_install :
2017-02-24 20:36:45 +01:00
- openssl aes-256-cbc -K $encrypted_5630fbebf057_key -iv $encrypted_5630fbebf057_iv -in .travis/secrets.tar.enc -out .travis/secrets.tar -d
- cd .travis && tar xfv secrets.tar
2017-02-20 18:46:22 +01:00
- echo "MAVEN_OPTS='-Xms1g -Xmx1g'" > "$HOME/.mavenrc"
- mkdir -p "$HOME/.m2"
- cp .travis/travis-toolchains.xml "$HOME/.m2/toolchains.xml"
2017-02-24 20:01:41 +01:00
- cp .travis/travis-settings.xml "$HOME/.m2/settings.xml"
- mkdir -p "$HOME/.ssh"
- chmod 700 "$HOME/.ssh"
2017-02-24 20:36:45 +01:00
- mv .travis/id_rsa "$HOME/.ssh/id_rsa"
2017-02-24 20:01:41 +01:00
- chmod 600 "$HOME/.ssh/id_rsa"
- mkdir -p "$HOME/.gpg"
- gpg2 --batch --import .travis/release-signing-key-82DE7BE82166E84E.gpg
2017-02-21 20:20:29 +01:00
install : mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
2017-01-27 20:46:58 -03:00
script :
2017-02-24 20:05:05 +01:00
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash .travis/build-pull-request.sh; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "${TRAVIS_SECURE_ENV_VARS}" = "true" ]; then bash .travis/build-push.sh; fi'
2017-02-21 20:20:29 +01:00
after_success : true
2017-01-27 20:46:58 -03:00
2017-02-21 20:20:29 +01:00
before_deploy : true
2017-01-27 20:46:58 -03:00
deploy :
- provider : script
2017-02-24 20:05:05 +01:00
script : bash .travis/release.sh
2017-02-21 20:20:29 +01:00
skip_cleanup : true
on :
tags : true
condition : "${TRAVIS_SECURE_ENV_VARS} = true"
2017-01-27 20:46:58 -03:00
- provider : releases
api_key : ${GITHUB_OAUTH_TOKEN}
2017-02-24 20:05:05 +01:00
file_glob : true
file : "pmd-dist/target/pmd-*.zip"
# - "pmd-dist/target/pmd-*.zip"
# - "target/pmd-doc-*.zip"
2017-02-21 20:20:29 +01:00
# TODO : This won't copy the changelog to GitHub
skip_cleanup : true
on :
tags : true
condition : "${TRAVIS_SECURE_ENV_VARS} = true"
after_deploy : true
2017-01-27 20:46:58 -03:00
2015-09-25 11:50:09 +02:00
notifications :
email :
recipients :
- adangel@users.sourceforge.net
on_success : always
on_failure : always
cache :
directories :
- "$HOME/.m2"
env :
global :
- secure : KBEuB6U1p5RQXSYe157AwydFr/zpXQPA0IChVCgZV+X1mMyy9ZtrjH1J1AXuviseDDXDbaT25sRnsvpl82rfRw2xOkMGXHy4N95/ylTSr8DjHxTao71BhXsvFycNobFva5y2EGNWqDvpS8I2oSZo7Qk4la3yep3rcJQvcy6RDbbhpDTbL1QMFyadunIBm0WtqbunrMqtjSqaoPsXz8TiQuxHvX4vEXzVbaxV1QQt79Vi+daa6wAV3mRQAugnx+UffsC8JqMxgm06usWeJgCJzxgm8E7clZCLmf53B2TL8dK6bIYbqyvOY3uFxitsTG0d8Z0GOJwXBgZNgbniTRO8ZJSty5eZP8LBybbjVLSL25DNTWtCjADUL/uySnXIEidlMt2N/3QmH7zrGAfAk/tIwKpdRca2GLLydeXf6PSkiahnPEkIY/QupcsOLELhdifpdOjb8QW1OenA+vUbNM9dccLwKnX6Fj9cu4VQG601AcYDr2eyhq8WYkr3wYdw/6KdUa3hmplowTBs+qguppP+eOSgGuEsy38KLtqnvm6WlHy6tcLmcVYKG3DmR1b7TWXsOXC6/VMH8BHBkvsF1QdRg9+Cgx07vX3Hw7roPiYzmaO9Ajs20ATsUfRskMuWCTeTSK5pN8X27veRCZlhFjeKQMDdmfVwzpAfRgKsl3TEn1I=
- secure : U1DfAv6acUUWe+dao/ZSDUX64JRadNJY16rITsdrM4ZNAJSuXpEY3p/LWcYjN7D49YmyutbXH9+L3KKQUQGrGXj9QTarfYvd8ZsKt4FK8y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mAgqtw55r4H385cQJS97Yzc3X2dA8BKfPus7ng+lRxL9sYxwqjvDJzOeBqhf62BircPeymlWc+Hc53gNirW2MG4vHY/zASvZDjg9Hr2sEUODY8u8i7EvfYfX+hNPXZNtWo8fHO5UviCbc16IMrADN497Y54cKvAtyD/2H3aFWg8ei96GpxOaL6W+l5gtlgNC1b9wPE3+pDloLc4TMbvvlSDPKGWgSgqv4haRJ81oIJK+KEvWhbX5Sn3l5QTM33/rn4KUEFqhGNpUxGrvCQOn5sO7A2wnk8JMlrcRZKBpk+wfEzeTEAqZ6Vt7pmceEpcs/NdJCsRjAOmlCdjLVHtrF9zGpBelAMzbIeKLMsTtR3PbpediWHkNwLaMCAEZPIPKeML6TXoPy/nlBpkK20rTbHRHhumFKACB3F3HCWm8v/SIU="
2017-01-27 20:46:58 -03:00
2017-02-24 20:05:27 +01:00
# Secure Keys, that need to be set for snapshot builds
#
# CI_DEPLOY_USERNAME - the user which can upload net.sourceforge.pmd:* to https://oss.sonatype.org/
# CI_DEPLOY_PASSWORD
#
# SONAR_TOKEN - the token used to update https://sonarqube.com/dashboard/?id=393826
#
# PMD_SF_USER - the sourceforge user, which is used to upload created binaries to sf files section. Note: an ssh key is
# required. See "before_install".
#
#
# Secure Keys, that need to be set for releases:
#
# PMD_SF_APIKEY - used to make the new release the default file in the files section. See https://sourceforge.net/auth/preferences/
# under "Release API Key"
#
2017-01-27 20:46:58 -03:00
# CI_SIGN_KEYNAME
# CI_SIGN_PASSPHRASE
# add the encrypted GPG keyring file to repo (https://docs.travis-ci.com/user/encrypting-files/#Automated-Encryption), decrypt it and install it at the beginning of .travis-deploy.sh
2017-02-24 20:05:27 +01:00
#
# GITHUB_OAUTH_TOKEN - the token used to upload the binaries to github releases
#