Library for a filter DSL in python
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 

29 lines
649 B

TARGET?=tests
test_default_python:
PYTHONPATH=".:./src" python -m pytest tests/ -v
test_py2:
@echo Executing test with python2
PYTHONPATH=".:./src" python2 -m pytest tests/ -v
test_py3:
@echo Executing test with python3
PYTHONPATH=".:./src" python3 -m pytest tests/ -v
test: test_py2 test_py3
compile:
@echo Compiling python code
python -m compileall src/
compile_optimized:
@echo Compiling python code optimized
python -O -m compileall src/
coverage:
coverage erase
PYTHONPATH=".:./src" coverage run --source='src' --branch -m py.test -qq tests/
coverage report -m
travis: compile compile_optimized test_default_python coverage