mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-23 02:23:07 +02:00

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.
16 lines
325 B
Makefile
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) $*
|