FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit c595ec56 authored by Dr Rich Wareham's avatar Dr Rich Wareham Committed by Dr Abraham Martin
Browse files

docker-compose.yml: rework tox

Re-work the tox deployment so that we mount the application directory as
a read-only volume rather than copying the file in when building the
image. This has the following advantages:

1. We do not build a new image each time we run tests. (This is nicer to
   those of us with finite disk space.)
2. Running tests is slightly faster since a new image is not being
   built.
3. The application directory is mounted read-only so we catch code which
   accidentally writes to the current directory.
4. We can use the upstream tox image rather than rolling our own derived
   image.

In order to make to happy to run in a read-only environment, we specify
that a) it does not run sdist to write an .egg-info directory and b)
that coverage data is stored in /tmp rather than the application
directory.
parent 6000b386
No related branches found
No related tags found
1 merge request!4Add tox support for matrix testing
Loading
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