diff --git a/.travis.yml b/.travis.yml index 1b45bac2..43e4f2c9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,8 @@ language: scala -scala: -- 2.10.4 -- 2.11.2 jdk: - oraclejdk7 +script: +- sbt +test after_success: - ./publishViaTravis.sh env: diff --git a/build.sbt b/build.sbt index 54fd3373..34d7c3fa 100644 --- a/build.sbt +++ b/build.sbt @@ -15,5 +15,5 @@ crossScalaVersions := Seq("2.10.4", "2.11.2") libraryDependencies ++= Seq( "io.reactivex" % "rxjava" % "1.0.0-rc.3", "org.mockito" % "mockito-core" % "1.9.5" % "test", - "junit" % "junit-dep" % "4.11" % "test", + "junit" % "junit" % "4.11" % "test", "org.scalatest" %% "scalatest" % "2.2.2" % "test") diff --git a/publishViaTravis.sh b/publishViaTravis.sh index 46693656..27de3996 100755 --- a/publishViaTravis.sh +++ b/publishViaTravis.sh @@ -8,8 +8,8 @@ if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" != "" ]; then sbt storeBintrayCredentials - sbt ++$TRAVIS_SCALA_VERSION publishSigned - # RETVAL=$? + sbt +publishSigned + RETVAL=$? if [ $RETVAL -eq 0 ]; then echo 'Completed upload!'