diff options
| author | Adam Izraelevitz | 2017-02-22 10:25:03 -0800 |
|---|---|---|
| committer | Jack Koenig | 2017-02-22 10:25:03 -0800 |
| commit | 7b4ab673ef1b5716f8bbe689faaf474c60a0d2fd (patch) | |
| tree | baceee8d789ac5d2a1da32e4f4a70634581836c5 | |
| parent | a02750f379b266b76febc58ef0351b56d21e9fcf (diff) | |
Add jenkins-build target to check scalastyle and coverage. (#445)
| -rw-r--r-- | Makefile | 7 | ||||
| -rw-r--r-- | project/plugins.sbt | 4 |
2 files changed, 11 insertions, 0 deletions
@@ -3,6 +3,8 @@ regress_dir ?= $(root_dir)/regress install_dir ?= $(root_dir)/utils/bin SBT ?= sbt +SBT_FLAGS ?= -Dsbt.log.noformat=true + scala_jar ?= $(install_dir)/firrtl.jar scala_src := $(shell find src -type f \( -name "*.scala" -o -path "*/resources/*" \)) @@ -25,4 +27,9 @@ $(scala_jar): $(scala_src) test-scala: $(SBT) test +jenkins-build: clean + $(SBT) $(SBT_FLAGS) +clean +test +publish-local + $(SBT) $(SBT_FLAGS) scalastyle coverage test + $(SBT) $(SBT_FLAGS) coverageReport + .PHONY: build clean regress build-scala test-scala diff --git a/project/plugins.sbt b/project/plugins.sbt index e8a9bcef..720470b8 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -11,3 +11,7 @@ addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "0.8.2") addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.6.1") addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.3.3") + +addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "0.8.0") + +addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.0") |
