forked from stlehmann/pyads
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
amended dockerfile and contibuting.mdso contributors can be made more…
… aware of testing issues
- Loading branch information
1 parent
c7ad2d6
commit e349a9a
Showing
2 changed files
with
31 additions
and
2 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
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 |
---|---|---|
@@ -1,6 +1,15 @@ | ||
FROM python:3.7 | ||
# This Dockerfile is for running the tests on a windows system where the | ||
# TwinCat router can interfere with the tests. In the first instance tests should be run with tox. | ||
|
||
ARG python_version=3.8 | ||
|
||
# Build python environment and setup pyads | ||
FROM python:${python_version} | ||
COPY . /pyads | ||
WORKDIR /pyads | ||
RUN python setup.py build | ||
RUN python setup.py develop | ||
CMD python setup.py test | ||
|
||
# Test commands | ||
RUN pip install pytest | ||
CMD pytest |