Commit 5f9953d6 authored by Stewart Williams's avatar Stewart Williams
Browse files

Run code analysis on 'make test'

parent 35b30933
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
all: test

test:
	cd /app && python setup.py test | tee test_output.log
	cd /app && python setup.py test | tee setup_py_test.stdout
	cd /app && ./code-analysis.sh | tee code_analysis.stdout
	# A temporary volume is mounted at /build when 'make test' is executing.
	# The following steps copy across useful output to this volume which can
	# then be extracted to form the CI summary for the test procedure.
	if [ -d /build ]; then \
		mv /app/test_output.log /build; \
		mv /app/setup_py_test.stdout /build; \
		mv /app/code_analysis.stdout /build; \
		mv /app/htmlcov /build; \
		mv /app/coverage.xml /build; \
	fi;