forked from c4urself/bump2version
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
28 lines (20 loc) · 774 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM themattrix/tox-base
RUN apt-get update && apt-get install -y git-core mercurial
# Update pyenv for access to newer Python releases.
RUN cd /.pyenv \
&& git fetch \
&& git checkout v1.2.8
ENV PYPY_VERSION=pypy2.7-5.10.0 \
PYPY3_VERSION=pypy3.5-5.10.1
# install a newer version op pypy and pypy3 that doesn't have troubles
RUN pyenv install "$PYPY_VERSION"
RUN pyenv install "$PYPY3_VERSION"
# only install certain versions for tox to use
RUN pyenv versions
RUN pyenv global system 2.7.15 3.4.9 3.5.6 3.6.6 3.7.0 "$PYPY_VERSION" "$PYPY3_VERSION"
RUN git config --global user.email "bumpversion_test@example.org"
RUN git config --global user.name "Bumpversion Test"
ENV PYTHONDONTWRITEBYTECODE = 1 # prevent *.pyc files
WORKDIR /code
COPY . .
CMD tox