diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..81b3f7f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,11 @@ +language: scala +scala: + - 2.9.3 + - 2.10.4 + - 2.11.7 +jdk: + - oraclejdk7 + - oraclejdk8 + - openjdk8 +script: sbt ++$TRAVIS_SCALA_VERSION test-only -- -l com.ironcorelabs.davenport.tags.RequiresCouch + diff --git a/src/test/java/com/ironcorelabs/davenport/RequiresCouch.java b/src/test/java/com/ironcorelabs/davenport/RequiresCouch.java new file mode 100644 index 0000000..3b3df35 --- /dev/null +++ b/src/test/java/com/ironcorelabs/davenport/RequiresCouch.java @@ -0,0 +1,9 @@ +package com.ironcorelabs.davenport.tags; + +import java.lang.annotation.*; +import org.scalatest.TagAnnotation; + +@TagAnnotation +@Retention(RetentionPolicy.RUNTIME) +@Target({ElementType.METHOD, ElementType.TYPE}) +public @interface RequiresCouch {} diff --git a/src/test/scala/com/ironcorelabs/davenport/CouchConnectionSpec.scala b/src/test/scala/com/ironcorelabs/davenport/CouchConnectionSpec.scala index e090233..3c3a2de 100644 --- a/src/test/scala/com/ironcorelabs/davenport/CouchConnectionSpec.scala +++ b/src/test/scala/com/ironcorelabs/davenport/CouchConnectionSpec.scala @@ -6,13 +6,16 @@ package com.ironcorelabs.davenport import scalaz._, Scalaz._, scalaz.concurrent.Task -import org.scalatest.{ WordSpec, Matchers, BeforeAndAfterAll, OptionValues } +import org.scalatest.{ WordSpec, Matchers, BeforeAndAfterAll, OptionValues, Tag } import org.typelevel.scalatest._ import DisjunctionValues._ import scala.language.postfixOps import DB._ +import com.ironcorelabs.davenport.tags.RequiresCouch +// import com.ironcorelabs.davenport.tagobjects.RequiresCouch import scala.concurrent.duration._ +@RequiresCouch class CouchConnectionSpec extends WordSpec with Matchers with BeforeAndAfterAll with DisjunctionMatchers with OptionValues { val k = Key("test") val k404 = Key("test404") diff --git a/src/test/scala/com/ironcorelabs/davenport/Tags.scala b/src/test/scala/com/ironcorelabs/davenport/Tags.scala new file mode 100644 index 0000000..3efa947 --- /dev/null +++ b/src/test/scala/com/ironcorelabs/davenport/Tags.scala @@ -0,0 +1,11 @@ +// +// com.ironcorelabs.davenport.Tags +// +// Copyright (c) 2015 IronCore Labs +// +package com.ironcorelabs.davenport.tagobjects + +import org.scalatest.Tag + +object RequiresCouch extends Tag("com.ironcorelabs.davenport.tags.RequiresCouch") +