Skip to content

Commit

Permalink
deploy snapshots on master
Browse files Browse the repository at this point in the history
  • Loading branch information
SingingBush committed Jun 6, 2018
1 parent 01d2af4 commit a0bd106
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ jobs:
jdk: oraclejdk8
after_success: mvn clean test jacoco:report coveralls:report
- stage: Deploy
if: branch = master
jdk: oraclejdk8
script: mvn clean deploy
script: mvn deploy -B --settings=.travis/settings.xml -DskipTests=true
on:
branch: master
34 changes: 34 additions & 0 deletions .travis/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<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
https://maven.apache.org/xsd/settings-1.0.0.xsd">

<servers>
<server>
<id>ossrh</id>
<username>${env.SONATYPE_USERNAME}</username>
<password>${env.SONATYPE_PASSWORD}</password>
</server>
</servers>

<profiles>
<profile>
<id>travis</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<gpg.executable>gpg2</gpg.executable>
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
</properties>
</profile>

</profiles>

<localRepository/>
<interactiveMode/>
<usePluginRegistry/>
<offline/>
<pluginGroups/>

</settings>

0 comments on commit a0bd106

Please sign in to comment.