tests: Move CMD from Dockerfile to docker-compose.yml

This makes it easier to change the command (e.g. to add `-s`) as we
don't need to tell docker-compose to rebuild the image and container.
This commit is contained in:
Tomas Janousek 2020-06-28 16:53:15 +02:00 committed by Tomas Babej
parent 09b6617791
commit c0285cceef
2 changed files with 1 additions and 2 deletions

View file

@ -33,5 +33,3 @@ ADD requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
RUN mkdir /root/.vim/bundle/taskwiki
WORKDIR /root/.vim/bundle/taskwiki
CMD xvfb-run python3 -m pytest -vv tests/

View file

@ -8,3 +8,4 @@ services:
security_opt:
- label=type:container_runtime_t
tty: true
command: xvfb-run python3 -m pytest -vv tests/