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V6TM1MaKK3lAucQrR+8To/vCbm8XqPyujJdOR+ENIuuDgEU/Yh5Hv5SAODekUYaCp4pjfGzFADHQWVNDxIOXrwBN4OfSiAvRc1x6HXndOmNI4QtOxheuCRFFthq8VZI=" - GITHUB_BASE_URL=https://api.github.com/repos/pmd/pmd jobs: fast_finish: true include: - stage: build name: "linux - mvn deploy" os: linux dist: bionic env: BUILD=deploy - name: "linux - build documentation" os: linux dist: bionic env: BUILD=doc - name: "linux - run sonar" os: linux dist: bionic env: BUILD=sonar if: "type = push && repo = pmd/pmd && fork = false" - name: "linux - run coveralls" os: linux dist: bionic env: BUILD=coveralls if: "type = push && repo = pmd/pmd && fork = false" - name: "macosx - mvn verify" os: osx env: BUILD=deploy - name: "windows - mvn verify" os: windows env: BUILD=deploy language: shell - stage: publish name: "Release Build - Publish" os: linux dist: bionic if: "type = push && repo = pmd/pmd && fork = false && tag is present" env: BUILD=publish before_install: - bash .travis/before_install.sh "11.0.7+10" - source ${HOME}/java.env install: true before_script: true script: source .travis/build-$BUILD.sh after_success: true notifications: webhooks: urls: - https://webhooks.gitter.im/e/0e6dd310db54b96c2653 - https://webhooks.gitter.im/e/65efc1ea65175ad23ab6 on_success: always # options: [always|never|change] default: always on_failure: always # options: [always|never|change] default: always on_start: never # options: [always|never|change] default: always email: recipients: - andreas.dangel@adangel.org on_success: change on_failure: always cache: directories: - "$HOME/.m2" - "$HOME/.cache" - vendor/bundle - "$HOME/.rvm/" # 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" # # 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 # # GITHUB_OAUTH_TOKEN - the token used to upload the binaries to github releases # GITHUB_BASE_URL - the api url to use for github releases - does not need to be secure (https://api.github.com/repos/pmd/pmd) #