From 7b4ab673ef1b5716f8bbe689faaf474c60a0d2fd Mon Sep 17 00:00:00 2001 From: Adam Izraelevitz Date: Wed, 22 Feb 2017 10:25:03 -0800 Subject: Add jenkins-build target to check scalastyle and coverage. (#445) --- Makefile | 7 +++++++ project/plugins.sbt | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/Makefile b/Makefile index 86e260d5..c304f265 100644 --- a/Makefile +++ b/Makefile @@ -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") -- cgit v1.2.3