Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy SNAPSHOT versions from Travis #528

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .travis-settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<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">
<localRepository/>
<interactiveMode/>
<usePluginRegistry/>
<offline/>
<pluginGroups/>
<servers>
<server>
<id>sonatype-nexus-snapshots</id>
<username>${env.CI_DEPLOY_USERNAME}</username>
<password>${env.CI_DEPLOY_PASSWORD}</password>
</server>
</servers>
<mirrors/>
<proxies/>
<profiles/>
<activeProfiles/>
</settings>
15 changes: 12 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
language: java
script: mvn -q clean install
jdk:
- openjdk6
- openjdk7
- oraclejdk7
- openjdk7
- oraclejdk7
matrix:
# override script for jdk 6 to push snapshots to sonatype
include:
- jdk: openjdk6
script: mvn -q clean deploy --settings .travis-settings.xml -Dno.gem.deploy=true

# whitelist
branches:
only:
Expand All @@ -15,3 +20,7 @@ notifications:
irc:
- "irc.freenode.org#cucumber"

env:
global:
- secure: 'INSERT OUTPUT FROM [travis encrypt -r cucumber/cucumber-jvm "CI_DEPLOY_USERNAME=<sonatype-username>"] HERE'
- secure: 'INSERT OUTPUT FROM [travis encrypt -r cucumber/cucumber-jvm "CI_DEPLOY_PASSWORD=<sonatype-password>"] HERE'
2 changes: 1 addition & 1 deletion jruby/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ gherkin.I18n.all.each { i18n ->
<id>deploy-gem</id>
<phase>deploy</phase>
<configuration>
<target>
<target unless="no.gem.deploy">
<!-- install the jruby-openssl gem first! -->
<echo message="installing jruby-openssl..." />
<java jar="${maven.dependency.org.jruby.jruby-complete.jar.path}" failonerror="true" fork="true">
Expand Down