-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
120 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
resolvers += Classpaths.sbtPluginReleases | ||
|
||
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0") | ||
|
||
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.1") | ||
addSbtPlugin("com.typesafe.sbt" % "sbt-scalariform" % "1.3.0") | ||
|
||
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.0") | ||
|
||
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.1.0") | ||
|
||
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.2.18") | ||
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.2.18") | ||
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "1.1") | ||
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "0.9.3") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/usr/bin/env ruby | ||
|
||
def exec(cmd) | ||
abort("Error encountered, aborting") unless system(cmd) | ||
end | ||
|
||
puts "CI=#{ENV['CI']}" | ||
puts "TRAVIS_BRANCH=#{ENV['TRAVIS_BRANCH']}" | ||
puts "TRAVIS_PULL_REQUEST=#{ENV['TRAVIS_PULL_REQUEST']}" | ||
puts "PUBLISH=#{ENV['PUBLISH']}" | ||
puts "SONATYPE_USER=xxxx" if ENV['SONATYPE_USER'] | ||
puts "SONATYPE_PASS=xxxx" if ENV['SONATYPE_PASS'] | ||
puts "PGP_PASS=xxxx" if ENV['PGP_PASS'] | ||
puts | ||
|
||
unless ENV['CI'] == 'true' | ||
abort("ERROR: Not running on top of Travis, aborting!") | ||
end | ||
|
||
unless ENV['PUBLISH'] == 'true' | ||
puts "Publish is disabled" | ||
exit | ||
end | ||
|
||
branch = ENV['TRAVIS_BRANCH'] | ||
version = nil | ||
|
||
unless branch =~ /^v(\d+\.\d+\.\d+)$/ || | ||
(branch == "snapshot" && ENV['TRAVIS_PULL_REQUEST'] == 'false') | ||
|
||
puts "Only deploying docs on the `publish` branch, or for version tags " + | ||
"and not for pull requests or other branches, exiting!" | ||
exit 0 | ||
else | ||
version = $1 | ||
puts "Version branch detected: #{version}" if version | ||
end | ||
|
||
# Forcing a change to the root directory, if not there already | ||
Dir.chdir(File.absolute_path(File.join(File.dirname(__FILE__), ".."))) | ||
|
||
# Go, go, go | ||
exec("sbt release") |