[PATCH 0/7] Starting out with Patchwork

Daniel Axtens dja at axtens.net
Tue Aug 2 10:24:39 AEST 2016


Hi all,

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
stage for...

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 enables tox tests in Docker: both updating the tox.ini file so
the tests pass, and giving a one-line command to run the tests inside
docker.

Patch 7 enable the use of Travis CI to run the 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.

Regards,
Daniel

---

Daniel Axtens (7):
  Fix failure to start with uninitalised database
  Fix test_login in test_user_browser.py
  Ignore *~ files.
  Put test db host and port into env variables.
  Allow use of Docker for development
  Enable tox tests in Docker
  Add .travis.yml file

 .dockerignore                        |  3 ++
 .gitignore                           |  1 +
 .travis.yml                          | 25 +++++++++++
 README.md                            | 40 ++++++++++++++++-
 docker-compose.yml                   | 23 ++++++++++
 docker/Dockerfile                    | 51 ++++++++++++++++++++++
 docker/bashrc                        |  5 +++
 docker/db/.dockerignore              |  1 +
 docker/db/.gitignore                 |  1 +
 docker/db/Dockerfile                 | 10 +++++
 docker/entrypoint.sh                 | 83 ++++++++++++++++++++++++++++++++++++
 docker/google-chrome.list            |  1 +
 patchwork/forms.py                   | 11 ++++-
 patchwork/settings/dev.py            |  4 +-
 patchwork/tests/test_user_browser.py |  4 +-
 tox.ini                              |  9 ++--
 16 files changed, 260 insertions(+), 12 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
 create mode 100644 docker/google-chrome.list

-- 
2.7.4



More information about the Patchwork mailing list