Skip to content

Commit 76344cf

Browse files
committed
add bench task
1 parent 4766538 commit 76344cf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build.sbt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ organization := "org.enso"
33
scalaVersion := "2.12.8"
44

55
lazy val Benchmark = config("bench") extend Test
6+
lazy val bench = taskKey[Unit]("Run Benchmarks")
67

78
lazy val enso = (project in file(".")).aggregate(syntax)
89

@@ -30,4 +31,7 @@ lazy val syntax = (project in file("syntax"))
3031
logBuffered := false
3132
)
3233
.settings(SbtJFlexPlugin.jflexSettings)
33-
.settings(mainClass in (Compile,run) := Some("org.enso.syntax.Main"))
34+
.settings(mainClass in (Compile,run) := Some("org.enso.syntax.Main"))
35+
.settings(bench := {
36+
(test in Benchmark).value
37+
})

0 commit comments

Comments
 (0)