-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
34 lines (26 loc) · 934 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
PYFILES := $(shell find control -name "*.py")
EXE := control.zip
.PHONY: test build clean reallyclean
build: $(EXE)
$(EXE): $(PYFILES)
@-rm $(EXE) controli.zip
cp control/__main__.py .
zip -r controli.zip __main__.py control -x "control/tests*"
rm __main__.py
echo "#!/usr/bin/env python3" > $(EXE)
cat controli.zip >> $(EXE)
-rm controli.zip
chmod +x $(EXE)
qtest:
py.test --tb=no --cov-config .coveragerc --cov-report term-missing --cov=control -s control/tests
test:
py.test -v --cov-config .coveragerc --cov-report term-missing --cov=control --junitxml results.xml control/tests
jenkins-test:
-py.test -v --cov-config .coveragerc --cov-report xml --cov=control --junitxml results.xml control/tests
clean:
-rm $(EXE)
reallyclean: clean
-rm -r */**/__pycache__ __pycache__
-rm */**/*pyc *pyc
-rm */**/results*.xml results*.xml */**/.coverage .coverage */**/coverage.xml coverage.xml
-rm */**/*,cover *,cover