FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 41afbf3f authored by Dr Abraham Martin's avatar Dr Abraham Martin
Browse files

Add dockerisation to execute tox inside a container

Use themattrix/tox-base docker image. This image contains all versions of python, whuch makes matrix testing very easy.
parent fa002850
No related branches found
No related tags found
1 merge request!4Add tox support for matrix testing
FROM themattrix/tox-base
ADD . .
RUN tox
# docker-compose file for local development and testing with container image.
#
# Extends compose/base.yml so launch services via:
#
# docker-compose -f compose/base.yml -f compose/tox.yml run --rm tox <...>
version: '3.2'
services:
tox:
build:
context: .
dockerfile: Dockerfile
environment:
- TOXINI_WORK_DIR=/tmp/tox-data/work
- TOXINI_ARTEFACT_DIR=/tmp/tox-data/artefacts
volumes:
- tox-data:/tmp/tox-data
volumes:
# A persistent volume for tox to store its stuff. This allows caching of
# virtualenvs between runs.
tox-data:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment