summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRunar Borge <runar@borge.nu>2020-05-08 09:55:15 +0200
committerRunar Borge <runar@borge.nu>2020-05-08 11:06:14 +0200
commit719defa27820fe60d47e402374a5bebc136addad (patch)
tree52705fc57d43f16dd17a304d4388c7ede0f7d8ad /Makefile
parent29dee3abb55d0f0c6b91b311f30521b45d7e46b6 (diff)
downloadvyos-1x-719defa27820fe60d47e402374a5bebc136addad.tar.gz
vyos-1x-719defa27820fe60d47e402374a5bebc136addad.zip
T2436: Adding offline python compile to fetch syntax faults
In the past there have been quite a few tickets regarding python syntax errors on scripts rewritten to python. To make a quickfix on some of these faults we could make a Jenkins step that executes: python3 -m compileall -q . to do a offline compile of the python files.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 62bcd473f..939e6cae3 100644
--- a/Makefile
+++ b/Makefile
@@ -119,6 +119,7 @@ clean:
.PHONY: test
test:
+ set -e; python3 -m compileall -q .
PYTHONPATH=python/ python3 -m "nose" --with-xunit src --with-coverage --cover-erase --cover-xml --cover-package src/conf_mode,src/op_mode,src/completion,src/helpers,src/validators,src/tests --verbose
.PHONY: sonar