Skip to content

Commit

Permalink
Merge pull request #44 from tomdcc/travis-publish-snapshots
Browse files Browse the repository at this point in the history
Publish snapshots and releases to Grails Central from Travis
  • Loading branch information
robfletcher committed Aug 1, 2013
2 parents bab0056 + c069b06 commit 2057a4c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .travis.yml
Expand Up @@ -8,4 +8,12 @@ script: ./grailsw refresh-dependencies
&& ./grailsw "test-app -unit"
&& cd test/apps/gson-test
&& ./grailsw refresh-dependencies
&& ./grailsw "test-app -integration -functional"
&& ./grailsw "test-app -integration -functional"
&& cd ../../..
&& ./grailsw package-plugin
&& ./grailsw publish-plugin --no-scm --allow-overwrite

env:
global:
- secure: <output from travis encrypt 'GRAILS_CENTRAL_USERNAME=theusername'
- secure: <output from travis encrypt 'GRAILS_CENTRAL_PASSWORD=thepassword'
3 changes: 3 additions & 0 deletions grails-app/conf/BuildConfig.groovy
Expand Up @@ -35,3 +35,6 @@ grails.project.dependency.resolution = {
}
}
}

grails.project.repos.grailsCentral.username = System.getenv("GRAILS_CENTRAL_USERNAME")
grails.project.repos.grailsCentral.password = System.getenv("GRAILS_CENTRAL_PASSWORD")

0 comments on commit 2057a4c

Please sign in to comment.