-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sc
43 lines (34 loc) · 1.26 KB
/
build.sc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import $ivy.`com.goyeau::mill-scalafix:0.2.2`
import com.goyeau.mill.scalafix.ScalafixModule
import mill._, scalalib._, scalafmt._
val SpinalVersion = "1.6.0"
trait CommonSpinalModule extends ScalaModule with ScalafmtModule with ScalafixModule {
def scalaVersion = "2.13.6"
def scalacOptions = Seq("-unchecked", "-deprecation", "-feature")
def ivyDeps = Agg(
ivy"com.github.spinalhdl::spinalhdl-core:$SpinalVersion",
ivy"com.github.spinalhdl::spinalhdl-lib:$SpinalVersion",
ivy"com.github.spinalhdl::spinalhdl-sim:$SpinalVersion",
)
def scalacPluginIvyDeps = Agg(ivy"com.github.spinalhdl::spinalhdl-idsl-plugin:$SpinalVersion")
def scalafixIvyDeps = Agg(ivy"com.github.liancheng::organize-imports:0.5.0")
}
object SpinalNet extends CommonSpinalModule {
object test extends Tests with TestModule.ScalaTest {
def ivyDeps = Agg(ivy"org.scalatest::scalatest:3.2.9")
def testOnly(args: String*) = T.command {
super.runMain("org.scalatest.run", args: _*)
}
}
/*
object test extends Tests {
def ivyDeps = Agg(
ivy"org.scalatest::scalatest:3.2.2",
)
def testFrameworks = Seq("org.scalatest.tools.Framework")
def testOnly(args: String*) = T.command {
super.runMain("org.scalatest.run", args: _*)
}
}
*/
}