taskwiki/Makefile
Tomas Janousek 58af37436e tests: Really move command from docker-compose.yml to Makefile
This makes it easier to understand the interaction between the outer and
inner make, as one doesn't need to dig through docker-compose.yml and
possibly Dockerfile to find what command will be run.

It does break the ability to run `docker-compose run --rm tests` but
that's a good thing I believe: I only ever use that when I need a shell
in the container for debugging purposes.
2020-07-08 21:36:52 -04:00

16 lines
325 B
Makefile

export LC_ALL := en_US.UTF-8
PYTHON ?= python3
test:
docker-compose run --rm tests make xvfb-cover-pytest
pytest:
$(PYTHON) -m pytest -vv $(PYTEST_FLAGS) tests/
cover-pytest: PYTEST_FLAGS += --cov=taskwiki
cover-pytest: pytest
if [ "$$TRAVIS" ]; then coveralls; fi
xvfb-%:
xvfb-run --server-args=-noreset $(MAKE) $*