From 76344cf79e7f9fc9d06153bb142fa2c57d243596 Mon Sep 17 00:00:00 2001 From: Marcin Kostrzewa Date: Fri, 7 Jun 2019 14:52:22 +0200 Subject: [PATCH] add bench task --- build.sbt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 51a2351682..c7dcca525b 100644 --- a/build.sbt +++ b/build.sbt @@ -3,6 +3,7 @@ organization := "org.enso" scalaVersion := "2.12.8" lazy val Benchmark = config("bench") extend Test +lazy val bench = taskKey[Unit]("Run Benchmarks") lazy val enso = (project in file(".")).aggregate(syntax) @@ -30,4 +31,7 @@ lazy val syntax = (project in file("syntax")) logBuffered := false ) .settings(SbtJFlexPlugin.jflexSettings) - .settings(mainClass in (Compile,run) := Some("org.enso.syntax.Main")) \ No newline at end of file + .settings(mainClass in (Compile,run) := Some("org.enso.syntax.Main")) + .settings(bench := { + (test in Benchmark).value + }) \ No newline at end of file