From e387766202a23b3a8591d5699e1a6bdc6547f26a Mon Sep 17 00:00:00 2001 From: Naftoli Gugenheim Date: Tue, 29 Jul 2014 01:15:45 -0400 Subject: [PATCH] Add 2.11 cross build --- .travis.yml | 2 +- build.sbt | 4 ++-- .../scala/scala/slick/additions/KeyedTableComponent.scala | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 447b1e5..54ace0e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: scala -script: sbt test publish coveralls package +script: sbt +test +publish +coveralls +package env: global: secure: APrQBWcOM2kkihTSSPIEiPEAIiM1Gi1HLNK6Sz/cBtRttXVnMUr7CHU9hbPKtJP94iYmc3gZKY5YjZVG7oKh1B3hUx7booHMPS0fyaC0bxUwRLSWIrav+c2cTzwYvoKz4smS81njrq+i4F/g/+05jqsiwSu7bpjiueiXjROXLZk= diff --git a/build.sbt b/build.sbt index ad17535..8d96bdb 100644 --- a/build.sbt +++ b/build.sbt @@ -1,4 +1,4 @@ -scalaVersion := "2.10.4" +crossScalaVersions := Seq("2.10.4", "2.11.2") libraryDependencies += "com.typesafe.slick" %% "slick" % "2.1.0-RC3" @@ -6,7 +6,7 @@ name := "slick-additions" organization := "io.github.nafg" -libraryDependencies += "org.scalatest" %% "scalatest" % "2.0.M6-SNAP5" % "test" +libraryDependencies += "org.scalatest" %% "scalatest" % "2.2.0" % "test" libraryDependencies += "com.h2database" % "h2" % "1.3.170" % "test" diff --git a/src/main/scala/scala/slick/additions/KeyedTableComponent.scala b/src/main/scala/scala/slick/additions/KeyedTableComponent.scala index d2d99cc..7a65ba8 100644 --- a/src/main/scala/scala/slick/additions/KeyedTableComponent.scala +++ b/src/main/scala/scala/slick/additions/KeyedTableComponent.scala @@ -185,7 +185,7 @@ trait KeyedTableComponent extends JdbcDriver { def deleteQuery(keep: Seq[K2]) = query.filter { - case t: T2 with simple.EntityTable[K2, V2] => + case t: simple.EntityTable[K2, V2] => implicit def tm: BaseColumnType[K2] = t.keyMapper !(t.key inSet keep) }