forked from phoedos/pmd
31 lines
3.1 KiB
YAML
31 lines
3.1 KiB
YAML
language: java
|
|
jdk: oraclejdk8
|
|
before_install:
|
|
- echo "MAVEN_OPTS='-Xms1g -Xmx1g'" > "$HOME/.mavenrc"
|
|
- mkdir -p "$HOME/.m2"
|
|
- cp .travis-toolchains.xml "$HOME/.m2/toolchains.xml"
|
|
before_script:
|
|
- SHOULD_DEPLOY=no
|
|
- '[ "${TRAVIS_SECURE_ENV_VARS}" = "true" ] && [ "${TRAVIS_PULL_REQUEST}" = "false" ] && SHOULD_DEPLOY=yes || ( [ "${SHOULD_DEPLOY}" != "yes" ] && echo "Skipping Deploy" )'
|
|
- export SHOULD_DEPLOY
|
|
script:
|
|
- '[ "${SHOULD_DEPLOY}" = "yes" ] && mvn test deploy --settings .travis-settings.xml || ( [ "${SHOULD_DEPLOY}" != "yes" ] && echo "Skipping Deploy" )'
|
|
- '[ "${SHOULD_DEPLOY}" = "yes" ] || mvn test'
|
|
- '[ "${SHOULD_DEPLOY}" = "yes" ] && mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar -Dsonar.host.url=https://nemo.sonarqube.org -Dsonar.login=${SONAR_TOKEN} || ( [ "${SHOULD_DEPLOY}" != "yes" ] && echo "Skipping Sonar" )'
|
|
branches:
|
|
except:
|
|
- /^pmd_releases\/\d/
|
|
notifications:
|
|
email:
|
|
recipients:
|
|
- adangel@users.sourceforge.net
|
|
on_success: always
|
|
on_failure: always
|
|
cache:
|
|
directories:
|
|
- "$HOME/.m2"
|
|
env:
|
|
global:
|
|
- secure: KBEuB6U1p5RQXSYe157AwydFr/zpXQPA0IChVCgZV+X1mMyy9ZtrjH1J1AXuviseDDXDbaT25sRnsvpl82rfRw2xOkMGXHy4N95/ylTSr8DjHxTao71BhXsvFycNobFva5y2EGNWqDvpS8I2oSZo7Qk4la3yep3rcJQvcy6RDbbhpDTbL1QMFyadunIBm0WtqbunrMqtjSqaoPsXz8TiQuxHvX4vEXzVbaxV1QQt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