diff options
author | Olivier Melois <olivierm@cakesolutions.net> | 2018-03-29 21:03:27 +0100 |
---|---|---|
committer | Olivier Melois <olivierm@cakesolutions.net> | 2018-03-29 21:12:55 +0100 |
commit | a96754b75c1fbf1959aeac59040588211f5327c2 (patch) | |
tree | 75e2d6c69c2e28d4500505da002ea387f2771027 /main/test | |
parent | 41ca6c22894e863f5042cd8f49f5c3c6d52acc23 (diff) | |
download | mill-a96754b75c1fbf1959aeac59040588211f5327c2.tar.gz mill-a96754b75c1fbf1959aeac59040588211f5327c2.tar.bz2 mill-a96754b75c1fbf1959aeac59040588211f5327c2.zip |
Adds envVars propagation client -> server
Since Mill now executes in a long-lived JVM, the builds do not have a
chance to use environment variables as inputs. This propagates the
environment variables from the client all the way down to the context
available to the tasks as a `Map[String, String]` so that they can be
used as inputs should the user choose to do so.
https://github.com/lihaoyi/mill/issues/257
Diffstat (limited to 'main/test')
-rw-r--r-- | main/test/src/mill/util/ScriptTestSuite.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/test/src/mill/util/ScriptTestSuite.scala b/main/test/src/mill/util/ScriptTestSuite.scala index a2f2676a..f88007c5 100644 --- a/main/test/src/mill/util/ScriptTestSuite.scala +++ b/main/test/src/mill/util/ScriptTestSuite.scala @@ -15,7 +15,7 @@ abstract class ScriptTestSuite(fork: Boolean) extends TestSuite{ val stdIn = new ByteArrayInputStream(Array()) lazy val runner = new mill.main.MainRunner( ammonite.main.Cli.Config(wd = workspacePath), - stdOutErr, stdOutErr, stdIn + stdOutErr, stdOutErr, stdIn, None, Map.empty ) def eval(s: String*) = { if (!fork) runner.runScript(workspacePath / "build.sc", s.toList) |