Skip to content

Commit

Permalink
Merge 647ec37 into bbcad94
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangwalther committed Jul 8, 2020
2 parents bbcad94 + 647ec37 commit a76e147
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
@@ -0,0 +1,7 @@
# Dockerfile to run the test suite and linter
FROM python:slim
RUN pip install flake8 flake8-import-order doc8 yamllint \
&& apt-get update \
&& apt-get install -y locales \
&& rm -rf /var/lib/apt/lists/* \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
18 changes: 18 additions & 0 deletions docker-compose.yml
@@ -0,0 +1,18 @@
# 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 ."

0 comments on commit a76e147

Please sign in to comment.