mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-18 21:33: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
367 B
YAML
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:
|