summaryrefslogtreecommitdiff
path: root/example/staticFiles/build.sc
blob: 6f84dac550b4c9d79fa396c8a3530b9c43a3fe36 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import mill._, scalalib._


trait AppModule extends ScalaModule{
  def scalaVersion = "2.13.0"

  def forkWorkingDir = build.millSourcePath

  object test extends Tests{
    def testFrameworks = Seq("utest.runner.Framework")

    def ivyDeps = Agg(
      ivy"com.lihaoyi::utest::0.6.9",
      ivy"com.lihaoyi::requests::0.2.0",
    )

    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:_*)
    }
  }
}