mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
#1251 Deploy SNAPSHOTS from Travis CI
This commit is contained in:
parent
17da0cf912
commit
6377e51efa
@ -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
11
etc/travis-settings.xml
Normal 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>
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user