Files
yamllint/docker-compose.yml
Wolfgang Walther 647ec375ee Add Dockerfile and docker-compose.yml to run tests and linter
Just run `docker-compose up test` and `docker-compose up lint`
to run tests and the linter without setting up a local python environment.
2020-07-08 11:18:11 +02:00

19 lines
331 B
YAML

# Docker Compose file to run the test suite and linter
---
version: "3"
services:
test:
build: .
working_dir: /app
volumes:
- ./:/app
command: python setup.py test
lint:
build: .
working_dir: /app
volumes:
- ./:/app
command: sh -c "flake8 . ; yamllint --strict . ; doc8 -e .rst ."