diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-08-13 21:11:11 +0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-08-13 22:13:48 +0800 |
commit | e74ade7ac9bfff9239c0243c0fdf01b18d4a0ec3 (patch) | |
tree | 9589f3840df5203b60be89efa878d3c2ee678af0 /example/staticFiles/build.sc | |
parent | b1d516e2b7df2d881c4dc84840e1cdc475b845b5 (diff) | |
download | cask-e74ade7ac9bfff9239c0243c0fdf01b18d4a0ec3.tar.gz cask-e74ade7ac9bfff9239c0243c0fdf01b18d4a0ec3.tar.bz2 cask-e74ade7ac9bfff9239c0243c0fdf01b18d4a0ec3.zip |
0.1.00.1.0
Diffstat (limited to 'example/staticFiles/build.sc')
-rw-r--r-- | example/staticFiles/build.sc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/example/staticFiles/build.sc b/example/staticFiles/build.sc index 0e803b8..00a7ee3 100644 --- a/example/staticFiles/build.sc +++ b/example/staticFiles/build.sc @@ -4,9 +4,11 @@ import mill._, scalalib._ trait AppModule extends ScalaModule{ def scalaVersion = "2.12.6" def ivyDeps = Agg( - ivy"com.lihaoyi::cask:0.0.9", + ivy"com.lihaoyi::cask:0.1.0", ) + def forkWorkingDir = build.millSourcePath + object test extends Tests{ def testFrameworks = Seq("utest.runner.Framework") @@ -14,5 +16,12 @@ trait AppModule extends ScalaModule{ ivy"com.lihaoyi::utest::0.6.3", ivy"com.lihaoyi::requests::0.1.2", ) + + def forkWorkingDir = build.millSourcePath + + // redirect this to the forked `test` to make sure static file serving works + def testLocal(args: String*) = T.command{ + test(args:_*) + } } }
\ No newline at end of file |