-
Notifications
You must be signed in to change notification settings - Fork 2
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 #8 from dwickern/cross-test
run scripted tests against entire build matrix
- Loading branch information
Showing
4 changed files
with
63 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
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
import sbt.ScriptedPlugin.autoImport._ | ||
import sbt._ | ||
import sbt.internal.ProjectMatrix | ||
|
||
case class PlayAxis(version: String) extends VirtualAxis.WeakAxis { | ||
val directorySuffix: String = "-play" + version | ||
val idSuffix: String = directorySuffix.replace('.', '_') | ||
} | ||
|
||
object PlayAxis { | ||
implicit class RichProjectMatrix(val matrix: ProjectMatrix) extends AnyVal { | ||
def scriptedTests(playAxis: PlayAxis, scalaVersion: String): ProjectMatrix = matrix.customRow( | ||
autoScalaLibrary = false, | ||
axisValues = Seq(playAxis, VirtualAxis.scalaPartialVersion(scalaVersion), VirtualAxis.jvm), | ||
_.settings( | ||
scriptedLaunchOpts ++= Seq( | ||
s"-Dscala.version=$scalaVersion", | ||
s"-Dplay.version=${playAxis.version}" | ||
) | ||
) | ||
) | ||
} | ||
} |
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