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
Support multiple versions of Scalaz Stream at the same time #29
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
4173033
support multiple versions of scalaz at the same time
timperrett a96902d
don’t forget to make the version of ermine dynamic
timperrett 2532b29
missed some test cases
timperrett f2477c3
force travis to use GCE
timperrett 69b0c55
+ bump version
timperrett File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't just check if
SCALAZ_STREAM_VERSION
is present? maybe it's useful for development.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because for development you can just do:
set scalazStreamVersion := "0.8.1a"
or whatever