summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-05-16 11:55:07 +0700
committerGitHub <noreply@github.com>2018-05-16 11:55:07 +0700
commit99ebcdfee74df81b10e920c2b1eebf0f35f159c3 (patch)
tree638d1f4c1220ef90a6cdf6a1ec627eb1f3e670d6 /Makefile
parent97213f4c2e765202f32d99eec880fa69b252a01d (diff)
parentdeef3a85555f04abbcdf1a63c3a7d1dcc975a4de (diff)
downloadvyos-1x-99ebcdfee74df81b10e920c2b1eebf0f35f159c3.tar.gz
vyos-1x-99ebcdfee74df81b10e920c2b1eebf0f35f159c3.zip
Merge pull request #10 from higebu/add-tests
T626 Add tests for vyos-update-crontab and initial setup for sonarcloud
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
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}