taskwiki/docker-compose.yml
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
367 B
YAML

version: '3'
services:
tests:
build: .
volumes:
- ".:/root/.vim/bundle/taskwiki:ro"
network_mode: "host"
security_opt:
- label=type:container_runtime_t
tty: true
environment:
PYTEST_FLAGS: "-o cache_dir=/tmp/pytest-cache ${PYTEST_FLAGS:-}"
TRAVIS:
TRAVIS_JOB_ID:
TRAVIS_BRANCH:
TRAVIS_PULL_REQUEST: