This repository has been archived by the owner on Mar 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from timperrett/master
Support multiple versions of Scalaz Stream at the same time
- Loading branch information
Showing
12 changed files
with
97 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,22 @@ | ||
language: scala | ||
scala: | ||
- 2.10.5 | ||
- 2.11.6 | ||
jdk: | ||
- oraclejdk8 | ||
|
||
sudo: required | ||
|
||
matrix: | ||
include: | ||
# scala 2.10 | ||
- jdk: oraclejdk8 | ||
scala: 2.10.5 | ||
env: SCALAZ_STREAM_VERSION=0.7.3a | ||
- jdk: oraclejdk8 | ||
scala: 2.10.5 | ||
env: SCALAZ_STREAM_VERSION=0.8.1a | ||
# scala 2.11 | ||
- jdk: oraclejdk8 | ||
scala: 2.11.8 | ||
env: SCALAZ_STREAM_VERSION=0.8.1a | ||
- jdk: oraclejdk8 | ||
scala: 2.11.8 | ||
env: SCALAZ_STREAM_VERSION=0.7.3a | ||
|
||
script: sbt ++$TRAVIS_SCALA_VERSION +test |
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,12 +1,20 @@ | ||
|
||
import common.scalazStreamVersion | ||
|
||
common.settings | ||
|
||
resolvers ++= Seq( | ||
"scalaz.bintray" at "http://dl.bintray.com/scalaz/releases", | ||
"oncue.bintray" at "http://dl.bintray.com/oncue/releases" | ||
) | ||
|
||
libraryDependencies ++= Seq( | ||
"org.scalaz.stream" %% "scalaz-stream" % "0.7.3a", | ||
"oncue.ermine" %% "ermine-parser" % "0.2.1-2" | ||
) | ||
libraryDependencies ++= { | ||
val ermineVersion = | ||
if(scalazStreamVersion.value.startsWith("0.7")) "0.2.1-2" | ||
else "0.3.0" | ||
|
||
Seq( | ||
"org.scalaz.stream" %% "scalaz-stream" % scalazStreamVersion.value, | ||
"oncue.ermine" %% "ermine-parser" % ermineVersion | ||
) | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package knobs | ||
|
||
import scalaz.\/ | ||
import scalaz.concurrent.Task | ||
|
||
object compatibility { | ||
implicit class BedazledTask[A](task: Task[A]){ self => | ||
def unsafePerformAsync(g: (Throwable \/ A) => Unit): Unit = task.runAsync(g) | ||
def unsafePerformSync: A = task.run | ||
} | ||
} |
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,7 @@ | ||
package knobs | ||
|
||
import scalaz.concurrent.Task | ||
|
||
object compatibility { | ||
// for source compatibility in both scalaz versions | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
version in ThisBuild := "3.3.5-SNAPSHOT" | ||
version in ThisBuild := "3.6.0-SNAPSHOT" |
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