From 719defa27820fe60d47e402374a5bebc136addad Mon Sep 17 00:00:00 2001 From: Runar Borge Date: Fri, 8 May 2020 09:55:15 +0200 Subject: 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. --- Makefile | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3