Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Commit

Permalink
Enable continuous snapshot deploys
Browse files Browse the repository at this point in the history
  • Loading branch information
dflemstr committed Mar 17, 2016
1 parent aad483d commit 8cb0796
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ services:

install: true # This runs the "true" command in the install phase; thus skipping install
script:
- mvn verify
- |
if [ "$TRAVIS_BRANCH" == master && "$TRAVIS_PULL_REQUEST" == false ]
then mvn deploy -s travis-settings.xml
else mvn verify
fi
cache:
directories:
Expand Down
13 changes: 13 additions & 0 deletions travis-settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<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>ossrh</id>
<username>${env.SONATYPE_USERNAME}</username>
<password>${env.SONATYPE_PASSWORD}</password>
</server>
</servers>
</settings>

0 comments on commit 8cb0796

Please sign in to comment.