Skip to content

Commit

Permalink
Use Docker to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bfirsh committed Apr 6, 2015
1 parent 5b6d715 commit f739ac4
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ matrix:
install: pip install $DJANGO --use-mirrors

# command to run tests
script: ./run_tests.sh
script: script/test-command

5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM python:2.7
WORKDIR /code
ADD requirements.txt /code/requirements.txt
RUN pip install -r requirements.txt
ADD . /code
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,7 @@ To add arrows in the admin change list page to do reordering, you can use the
Test suite
----------

$ ./run_tests.sh
Requires Docker.

$ script/test

1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Django<1.8
3 changes: 3 additions & 0 deletions script/test
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
docker build -t django-ordered-model .
docker run django-ordered-model script/test-command
File renamed without changes.

0 comments on commit f739ac4

Please sign in to comment.