Skip to content

Commit

Permalink
Merge branch 'master' into query-timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregg Hernandez committed Jun 22, 2015
2 parents bc73aa4 + c3ffdba commit 787f4f9
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 6 deletions.
29 changes: 29 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
after_success:
- |
if [ -n "$TRAVIS_TAG" ]; then
mkdir ~/.pgp
echo $PGP_PUBLIC | base64 --decode > ~/.pgp/pubring
echo $PGP_SECRET | base64 --decode > ~/.pgp/secring
sbt ++$TRAVIS_SCALA_VERSION publishSigned
elif [ "$TRAVIS_PULL_REQUEST" == false ] && [ "$TRAVIS_BRANCH" == master ]; then
mkdir ~/.pgp
echo $PGP_PUBLIC | base64 --decode > ~/.pgp/pubring
echo $PGP_SECRET | base64 --decode > ~/.pgp/secring
sbt ++$TRAVIS_SCALA_VERSION publishSigned
fi
deploy:
api_key: $GITHUB_AUTH
file: target/**/*.jar
file_glob: true
on:
tags: true
provider: releases
skip_cleanup: true
jdk:
- openjdk6
language: scala
scala:
- 2.10.5
- 2.11.6
script:
- sbt ++$TRAVIS_SCALA_VERSION test package
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,5 @@ resolvers += "Sonatype release repository" at "https://oss.sonatype.org/content/
```

[Continue to Documentation](https://github.com/lucidsoftware/relate/wiki)

[![Build Status](https://travis-ci.org/lucidsoftware/relate.svg)](https://travis-ci.org/lucidsoftware/relate)
10 changes: 6 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ libraryDependencies ++= Seq(
"mysql" % "mysql-connector-java" % "5.1.23" % "it"
)

pgpPassphrase := Some(Array())

pgpPublicRing := file(System.getProperty("user.home")) / ".pgp" / "pubring"

pgpSecretRing := file(System.getProperty("user.home")) / ".pgp" / "secring"

pomExtra := (
<url>https://github.com/lucidsoftware/relate</url>
<licenses>
Expand Down Expand Up @@ -50,10 +56,6 @@ pomExtra := (

pomIncludeRepository := { _ => false }

useGpg := true

pgpReadOnly := false

publishMavenStyle := true

credentials += Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", System.getenv("SONATYPE_USERNAME"), System.getenv("SONATYPE_PASSWORD"))
Expand Down
1 change: 1 addition & 0 deletions project/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sbt.version=0.13.7
4 changes: 3 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8.2")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")

addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "0.5.0")
2 changes: 1 addition & 1 deletion src/test/scala/SqlResultSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ class SqlResultSpec extends Specification with Mockito {
rs.getObject("id") returns "1" thenReturns "2" thenReturns "1" thenReturns "2"
rs.getObject("name") returns "one" thenReturns "two" thenReturns "three" thenReturns "four"

val res = result.asMultiMap[String, String] { row =>
val res = result.asMultiMap { row =>
row.string("id") -> row.string("name")
}
res.keys must containTheSameElementsAs(Seq("1", "2"))
Expand Down

0 comments on commit 787f4f9

Please sign in to comment.