#1251 Deploy SNAPSHOTS from Travis CI

This commit is contained in:
Filip Hrisafov 2017-08-18 19:41:24 +02:00 committed by GitHub
parent 17da0cf912
commit 6377e51efa
3 changed files with 19 additions and 0 deletions

View File

@ -6,6 +6,13 @@ script: mvn clean install -DprocessorIntegrationTest.toolchainsFile=etc/toolchai
after_success:
- mvn jacoco:report && bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
deploy:
provider: script
script: "test ${TRAVIS_TEST_RESULT} -eq 0 && mvn -s etc/travis-settings.xml -DskipTests=true deploy"
skip_cleanup: true
on:
branch: master
sudo: false
cache:
directories:

11
etc/travis-settings.xml Normal file
View File

@ -0,0 +1,11 @@
<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.SONATYPE_USERNAME}</username>
<password>${env.SONATYPE_PASSWORD}</password>
</server>
</servers>
</settings>

View File

@ -559,6 +559,7 @@
<exclude>**/LICENSE.txt</exclude>
<exclude>**/mapstruct.xml</exclude>
<exclude>**/toolchains-*.xml</exclude>
<exclude>**/travis-settings.xml</exclude>
<exclude>**/eclipse-formatter-config.xml</exclude>
<exclude>**/forbidden-apis.txt</exclude>
<exclude>**/checkstyle-for-generated-sources.xml</exclude>