[PATCH v3 0/6] Starting out with Patchwork
dja at axtens.net
Tue Aug 9 14:27:35 AEST 2016
I have been attempting to pick up some patchwork development.
I had a pretty rocky start.
Patch 1 fixes an issue I had where attempting to install Patchwork
failed: an __init__ method tried to query the database, which doesn't
work when the database isn't initialised. I have put this in a
try/catch block catching the specific error that is thrown.
Patch 2 fixes a selenium based browser test.
Patch 3 and 4 are minor cleanup and preparatory patches, which set the
Patch 5, which allows the use of Docker as a development environment
as an alternative to vagrant. It doesn't interfere with vagrant at
all, just allows docker to be used instead.
Patch 6 enable the use of Travis CI to run some tox tests automatically
on commits to the main patchwork repo.
I'm hoping to now look at more testing and then more features, in
hopes of helping with snowpatch.
Changes from v2:
- Incorporate feedback from Andrew; see individual patches for the
- Minor cleanups.
Changes from v1:
- I've dropped the Tox changes for now until I sort out the Django
1.6 requirements. I'll redo that next.
- Changes from Chrome -> Chromium as requested
- Minor cleanups
Daniel Axtens (6):
Fix failure to start with uninitalised database
Fix test_login in test_user_browser.py
Ignore *~ and #*# files.
Put test db host and port into env variables.
Allow use of Docker for development
Add .travis.yml file
.dockerignore | 3 ++
.gitignore | 2 +
.travis.yml | 25 +++++++++++
README.md | 38 +++++++++++++++-
docker-compose.yml | 23 ++++++++++
docker/Dockerfile | 46 +++++++++++++++++++
docker/bashrc | 5 +++
docker/db/.dockerignore | 1 +
docker/db/.gitignore | 1 +
docker/db/Dockerfile | 10 +++++
docker/entrypoint.sh | 86 ++++++++++++++++++++++++++++++++++++
patchwork/forms.py | 11 ++++-
patchwork/settings/dev.py | 4 +-
patchwork/tests/test_user_browser.py | 4 +-
14 files changed, 252 insertions(+), 7 deletions(-)
create mode 100644 .dockerignore
create mode 100644 .travis.yml
create mode 100644 docker-compose.yml
create mode 100644 docker/Dockerfile
create mode 100644 docker/bashrc
create mode 100644 docker/db/.dockerignore
create mode 100644 docker/db/.gitignore
create mode 100644 docker/db/Dockerfile
create mode 100755 docker/entrypoint.sh
More information about the Patchwork