Deploy snapshots versions in CI
This commit is contained in:
parent
14c24f3235
commit
885d998eeb
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
|
||||
<servers>
|
||||
<server>
|
||||
<id>sonatype-nexus-snapshots</id>
|
||||
<username>${env.CI_DEPLOY_USERNAME}</username>
|
||||
<password>${env.CI_DEPLOY_PASSWORD}</password>
|
||||
</server>
|
||||
</servers>
|
||||
</settings>
|
||||
Loading…
Reference in New Issue