-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
47 lines (35 loc) · 1.07 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
TARGET?=tests
test_default_python:
PYTHONPATH="." python tests/ -v
test_py2:
@echo Executing test with python2
PYTHONPATH="." python2 tests/ -v
test_py3:
@echo Executing test with python3
PYTHONPATH="." python3 tests/ -v
test: test_py2 test_py3
compile:
@echo Compiling python code
python -m compileall smartcheck/
compile_optimized:
@echo Compiling python code optimized
python -O -m compileall smartcheck/
coverage:
coverage erase
PYTHONPATH="." coverage run --source='.' --omit 'tests/*,setup.py' --branch tests/__main__.py
coverage xml -i
coverage report -m
clean:
find -name "*.py?" -delete
rm -rf smartcheck/__pycache__
rm -f coverage.xml testresults.xml
rm -fr htmlcov dist build smart_check.egg-info deb_dist smart-check-*.tar.gz \
.pybuild debian/.debhelper debian/smart-check \
debian/smart-check.*
deb:
debuild
travis: compile compile_optimized test_default_python coverage
install_deps:
pip install --user -r requirements.txt
pip install --user -r requirements_dev.txt
jenkins: install_deps compile compile_optimized test_default_python