aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAdam Izraelevitz2017-02-22 10:25:03 -0800
committerJack Koenig2017-02-22 10:25:03 -0800
commit7b4ab673ef1b5716f8bbe689faaf474c60a0d2fd (patch)
treebaceee8d789ac5d2a1da32e4f4a70634581836c5 /Makefile
parenta02750f379b266b76febc58ef0351b56d21e9fcf (diff)
Add jenkins-build target to check scalastyle and coverage. (#445)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
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