Skip to content

Commit

Permalink
Add travis snapshot deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
rnc committed Oct 4, 2019
1 parent f6a30dd commit 43b267e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .travis.settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<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.SONATYPE_PWD}</password>
</server>
</servers>
</settings>
12 changes: 11 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,15 @@ before_install: |
mv travis-wait-enhanced $HOME/bin
fi
install: /bin/true
script: travis-wait-enhanced --timeout=60m --interval=4m -- mvn -V clean org.apache.maven.plugins:maven-source-plugin:jar-no-fork install -Prun-its

jobs:
include:
- name: deploy
if: branch = master AND type = push
script: "cp .travis.settings.xml $HOME/.m2/settings.xml && travis-wait-enhanced --timeout=60m --interval=4m -- mvn -V clean org.apache.maven.plugins:maven-source-plugin:jar-no-fork deploy"

- name: pr
if: type = pull_request
script: "travis-wait-enhanced --timeout=60m --interval=4m -- mvn -V clean org.apache.maven.plugins:maven-source-plugin:jar-no-fork install -Prun-its"

0 comments on commit 43b267e

Please sign in to comment.