Skip to content

Commit

Permalink
build: add testForkedParallel settings
Browse files Browse the repository at this point in the history
  • Loading branch information
j5ik2o committed Apr 19, 2021
1 parent 5c0fc82 commit fbc22c6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,16 @@ lazy val baseSettings = Seq(
semanticdbVersion := scalafixSemanticdb.revision,
Test / publishArtifact := false,
Test / fork := true,
Test / parallelExecution := false
testForkedParallel := true,
concurrentRestrictions := {
val par = parallelExecution.value
val max = EvaluateTask.SystemProcessors
List(
Tags.limitAll(if (par) max else 1),
Tags.limit(Tags.ForkedTestGroup, 2),
Tags.exclusiveGroup(Tags.Clean)
)
}
)

val `docker-controller-scala-core` = (project in file("docker-controller-scala-core"))
Expand Down

0 comments on commit fbc22c6

Please sign in to comment.