You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.1 KiB
47 lines
1.1 KiB
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
|