Giter VIP home page Giter VIP logo

tox-docker's Introduction

Introduction

Docker image to run tox with multiple python versions. Available images are the following:

  • sawkita/tox:2 - python2 only
  • sawkita/tox:3 - python3 only
  • sawkita/tox:all - both python 2 and 3

This is an image based on ubuntu-18.04 with a pre-installed version of tox. By using the TOX_VERSION environment variable, it's possible to select the tool version.

Check below for supported python versions.

Running tox

An example command to use sawkita/tox image is the following:

# pull all python versions
docker pull sawkita/tox:all

# pull python2 only image
docker pull sawkita/tox:2

# pull python3 only image
docker pull sawkita/tox:3

# run a container
docker container run \
    --mount src=$PWD,target=/src,type=bind \ # mount python source code in /src
    --interactive \                          # use interactive mode
    --tty \                                  # use pseudo-terminal
    --rm \                                   # remove the container after testing
    sawkita/tox:all \                        # 2 or 3 can be used
    /bin/bash -c "cd /src && tox"            # run tox inside /src

Python versions

Supported python versions are the following:

  • python2.3
  • python2.4
  • python2.5
  • python2.6
  • python2.7
  • python3.1
  • python3.2
  • python3.3
  • python3.4
  • python3.5
  • python3.6
  • python3.7
  • python3.8
  • python3.9

tox-docker's People

Contributors

acerv avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.