forked from labd/wagtailstreamforms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request labd#99 from AccentDesign/local_docker_testing
using tox in docker locally
- Loading branch information
Showing
3 changed files
with
42 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM accent/pyenv:latest | ||
|
||
# Copy the application code to the container: | ||
RUN mkdir /code/ | ||
WORKDIR /code/ | ||
ADD . /code/ | ||
|
||
# Docker environment variables: | ||
ENV TOX_PY27=2.7.15 \ | ||
TOX_PY34=3.4.8 \ | ||
TOX_PY35=3.5.5 \ | ||
TOX_PY36=3.6.5 | ||
|
||
# set pyenv local versions | ||
RUN pyenv local $TOX_PY27 $TOX_PY34 $TOX_PY35 $TOX_PY36 | ||
|
||
# Install dependencies | ||
RUN pip install --upgrade tox codecov | ||
|
||
# Start tox: | ||
CMD ["tox", "-v"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: '2' | ||
|
||
services: | ||
tox: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile-tox | ||
tty: true | ||
volumes: | ||
- .:/code |