Tox is a generic virtualenv management and test command line tool you can use for:
- checking your package installs correctly with different Python versions and interpreters
- running your tests in each of the environments, configuring your test tool of choice
- acting as a frontend to Continuous Integration servers, greatly reducing boilerplate and merging CI and shell-based testing.
FROM masahide/tox
Then, run the commands to build and run the Docker image:
$ docker build -t my-tox .
$ docker run -it --rm -v "$PWD:/code" my-tox tox
If you don't want to include a Dockerfile
in your project, it is sufficient to do the following:
$ docker run -it --rm -v "$PWD:/code" -w /code masahide/tox tox
View license information for the software contained in this image.
This image is officially supported on Docker version 1.10.1.