Skip to content

Commit

Permalink
Merge branch 'develop' into etcm-212-fix-tx-mining
Browse files Browse the repository at this point in the history
  • Loading branch information
Michał Mrożek committed Oct 16, 2020
2 parents e4a9f4e + f52c940 commit 1425ac4
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import scala.sys.process.Process
// Necessary for the nix build, please do not remove.
val nixBuild = sys.props.isDefinedAt("nix")

// Enable dev mode: disable certain flags, etc.
val mantisDev = sys.props.get("mantisDev").contains("true") || sys.env.get("MANTIS_DEV").contains("true")

val commonSettings = Seq(
name := "mantis",
version := "3.0",
Expand Down Expand Up @@ -64,12 +67,12 @@ val root = {
libraryDependencies ++= dep
)
.settings(executableScriptName := name.value)
.settings(inConfig(Integration)(Defaults.testSettings): _*)
.settings(inConfig(Benchmark)(Defaults.testSettings): _*)
.settings(inConfig(Evm)(Defaults.testSettings): _*)
.settings(inConfig(Ets)(Defaults.testSettings): _*)
.settings(inConfig(Snappy)(Defaults.testSettings): _*)
.settings(inConfig(Rpc)(Defaults.testSettings): _*)
.settings(inConfig(Integration)(Defaults.testSettings :+ (Test / parallelExecution := false)): _*)
.settings(inConfig(Benchmark)(Defaults.testSettings :+ (Test / parallelExecution := false)): _*)
.settings(inConfig(Evm)(Defaults.testSettings :+ (Test / parallelExecution := false)): _*)
.settings(inConfig(Ets)(Defaults.testSettings :+ (Test / parallelExecution := false)): _*)
.settings(inConfig(Snappy)(Defaults.testSettings :+ (Test / parallelExecution := false)): _*)
.settings(inConfig(Rpc)(Defaults.testSettings :+ (Test / parallelExecution := false)): _*)

if (!nixBuild)
root
Expand Down Expand Up @@ -97,7 +100,9 @@ scalacOptions in (Compile, console) ~= (_.filterNot(
)
))

Test / parallelExecution := false
scalacOptions ~= (options => if (mantisDev) options.filterNot(_ == "-Xfatal-warnings") else options)

Test / parallelExecution := true

testOptions in Test += Tests.Argument("-oDG")

Expand Down

0 comments on commit 1425ac4

Please sign in to comment.