Skip to content

Commit

Permalink
Specify test directory, add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Chiappetta committed Apr 19, 2016
1 parent d3f737b commit 79e4399
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Dockerfile
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"]
1 change: 1 addition & 0 deletions pytest.ini
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

0 comments on commit 79e4399

Please sign in to comment.