Skip to content

Commit

Permalink
Added automatic deployment to sonatype repo with travis
Browse files Browse the repository at this point in the history
  • Loading branch information
arvid committed Aug 21, 2013
1 parent 83d6617 commit 3e01501
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,14 @@ jdk:
- oraclejdk7
- openjdk7
- openjdk6
script: "mvn verify"
script: "mvn verify"

# deploy if the first job is successful; should be replaced by an after_all_success if travis finally supports it
after_success:
- if [[ $TRAVIS_JOB_NUMBER == *1 ]]; then mvn -DskipTests deploy --settings deploysettings.xml; fi

env:
global:
- secure: hiYZDVhJ9P0KjC8IaW5fxR2ztUQrJAgXMnzXo57WMKrGg5wLIa4yjkOW0mxH/Hv06b7Sa+OxVIznOlQy3h1a2L54LzFzGeWgyica5oblMF4JK2l3wCcQ272hZjq6iKAMdUBtVioNcCEZDSQdtbF3w5sD1cseEEbtyz75W/cCgi4=
- secure: BOH2vIhuFnjNoF72BoWLvFaW9w2NxFm3+9mk0OpVIq+WSlH9bc169gJGs/HNiWrBvMJxV6WaiwVMoshw3hqKP1qihJzi8JIRSrNkgQw5/hyotOaPjsUskbCiq+PtAmpF3d3XFN9/W4+uP+dce2lDQC8IrRrSyJN6Mj2LDPRKeJU=

18 changes: 18 additions & 0 deletions deploysettings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<settings xmlns="http:https://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http:https://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http:https://maven.apache.org/SETTINGS/1.0.0
http:https://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>sonatype-nexus-snapshots</id>
<username>${sonatype_user}</username>
<password>${sonatype_pw}</password>
</server>
<server>
<id>sonatype-nexus-staging</id>
<username>${sonatype_user}</username>
<password>${sonatype_pw}</password>
</server>
</servers>
</settings>

0 comments on commit 3e01501

Please sign in to comment.