-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Specify test directory, add Dockerfile
- Loading branch information
Marco Chiappetta
committed
Apr 19, 2016
1 parent
d3f737b
commit 79e4399
Showing
2 changed files
with
24 additions
and
0 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,23 @@ | ||
FROM ubuntu | ||
|
||
WORKDIR /drf-extra-fields | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
git \ | ||
python2.7 \ | ||
python-dev \ | ||
build-essential \ | ||
postgresql \ | ||
python-pip \ | ||
postgresql-server-dev-9.3 \ | ||
zlib1g-dev \ | ||
libjpeg8-dev \ | ||
libgeos-dev | ||
|
||
RUN git clone https://github.com/Hipo/drf-extra-fields.git . | ||
|
||
RUN pip install -r requirements.txt | ||
|
||
RUN pip install tox | ||
|
||
CMD ["tox", "-e", "py27"] |
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,2 +1,3 @@ | ||
[pytest] | ||
DJANGO_SETTINGS_MODULE = drf_extra_fields.runtests.settings | ||
testpaths = tests |