Last active
March 9, 2019 01:05
-
-
Save afsalthaj/f7bc10334a5ad74d33dc23b353cf0ec7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
lazy val myProject = | |
(project in file("myProject")) | |
.enablePlugins(DockerPlugin, DockerComposePlugin) | |
.config(DockerTest) | |
.settings(inConfig(DockerTest)(Defaults.testTasks): _*) | |
.settings(testOptions in DockerTest := Seq(Tests.Argument(TestFrameworks.Specs2, "include", | |
"DockerComposeTag"))) | |
// We exclude in other tests | |
.settings(testOptions in Test := Seq( | |
Tests.Argument(TestFrameworks.Specs2, "exclude", "DockerComposeTag")) | |
) | |
// Add the settings into the project before it is being used. | |
.settings(DockerUtil.settings) | |
.settings((test in DockerTest) := { | |
DockerUtil.dockerComposeDown.dependsOn(test in DockerTest).dependsOn(DockerUtil.dockerComposeUp).value | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment