diff --git a/.travis.yml b/.travis.yml index 2c9569264..3a2875870 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ matrix: include: # unit tests (oraclejdk8) - jdk: oraclejdk8 - env: DESC="tests" CMD="mvn clean integration-test failsafe:verify" COVERAGE_CMD="" + env: DESC="tests" CMD="mvn clean integration-test failsafe:verify" COVERAGE_CMD="" DEPLOY="true" # unit tests in German locale (oraclejdk8) - jdk: oraclejdk8 @@ -226,6 +226,7 @@ script: eval $CMD after_success: - eval $COVERAGE_CMD + - if [[ $TRAVIS_REPO_SLUG == 'checkstyle/checkstyle' && $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' && $DEPLOY == 'true' ]]; then mvn -s config/deploy-settings.xml deploy ; fi cache: directories: diff --git a/config/deploy-settings.xml b/config/deploy-settings.xml new file mode 100644 index 000000000..9a73bbfd7 --- /dev/null +++ b/config/deploy-settings.xml @@ -0,0 +1,9 @@ + + + + sonatype-nexus-snapshots + ${env.CI_DEPLOY_USERNAME} + ${env.CI_DEPLOY_PASSWORD} + + + \ No newline at end of file