|
|
@ -1,17 +1,10 @@ |
|
|
|
TARGET?=tests |
|
|
|
TARGET?=test |
|
|
|
|
|
|
|
test_default_python: |
|
|
|
PYTHONPATH="." python -m pytest tests/ --junit-xml testresults.xml -rxsw -v |
|
|
|
|
|
|
|
test_py2: |
|
|
|
@echo Executing test with python2 |
|
|
|
PYTHONPATH="." python2 -m pytest tests/ --junit-xml testresults.xml -rxsw -v |
|
|
|
#test:
|
|
|
|
# PYTHONPATH="." python manage.py test -v 2
|
|
|
|
|
|
|
|
test_py3: |
|
|
|
@echo Executing test with python3 |
|
|
|
PYTHONPATH="." python3 -m pytest tests/ --junit-xml testresults.xml -rxsw -v |
|
|
|
|
|
|
|
test: test_py2 test_py3 |
|
|
|
test: |
|
|
|
PYTHONPATH="." python -m pytest tests/ --junit-xml testresults.xml -rxsw -v |
|
|
|
|
|
|
|
compile: |
|
|
|
@echo Compiling python code |
|
|
@ -27,14 +20,15 @@ coverage: |
|
|
|
coverage xml -i |
|
|
|
coverage report -m |
|
|
|
|
|
|
|
sonar: |
|
|
|
/usr/local/bin/sonar-scanner/bin/sonar-scanner |
|
|
|
|
|
|
|
clean: |
|
|
|
find -name "*.py?" -delete |
|
|
|
rm -f coverage.xml |
|
|
|
rm -f testresults.xml |
|
|
|
rm -fr htmlcov dist *.egg-info |
|
|
|
find -type d -name "__pycache__" -delete |
|
|
|
rm -fr coverage.xml testresults.xml .coverage htmlcov dist *.egg-info |
|
|
|
|
|
|
|
travis: compile compile_optimized test coverage |
|
|
|
|
|
|
|
install_deps: |
|
|
|
pip install -r requirements.txt |
|
|
|
pip install -r requirements_dev.txt |
|
|
|
|
|
|
|
travis: compile compile_optimized test_default_python coverage |
|
|
|
jenkins: travis sonar |
|
|
|
jenkins: install_deps travis |