From deef3a85555f04abbcdf1a63c3a7d1dcc975a4de Mon Sep 17 00:00:00 2001 From: Yuya Kusakabe Date: Tue, 15 May 2018 22:49:55 +0900 Subject: T626 Add tests for vyos-update-crontab and initial setup for sonarcloud --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8a75a91e4..a46f4313a 100644 --- a/Makefile +++ b/Makefile @@ -35,3 +35,11 @@ all: interface_definitions op_mode_definitions clean: rm -rf $(TMPL_DIR)/* rm -rf $(OP_TMPL_DIR)/* + +.PHONY: test +test: + nosetests --with-xunit src --with-coverage --cover-erase --cover-xml --cover-package src/conf-mode,src/op-mode --verbose + +.PHONY: sonar +sonar: + sonar-scanner -X -Dsonar.login=${SONAR_TOKEN} -- cgit v1.2.3