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 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3