| 1 |
FROM themattrix/tox-base |
| 2 |
|
| 3 |
RUN apt-get update && apt-get install -y git-core mercurial |
| 4 |
|
| 5 |
# Update pyenv for access to newer Python releases. |
| 6 |
RUN cd /.pyenv \ |
| 7 |
&& git fetch \ |
| 8 |
&& git checkout v1.2.15 |
| 9 |
|
| 10 |
# only install certain versions for tox to use |
| 11 |
RUN pyenv versions |
| 12 |
RUN pyenv global system 3.5.7 3.6.9 3.7.5 3.8.0 pypy3.6-7.2.0 |
| 13 |
|
| 14 |
RUN git config --global user.email "[email protected]" |
| 15 |
RUN git config --global user.name "Bumpversion Test" |
| 16 |
|
| 17 |
ENV PYTHONDONTWRITEBYTECODE = 1 # prevent *.pyc files |
| 18 |
|
| 19 |
WORKDIR /code |
| 20 |
COPY . . |
| 21 |
CMD tox |