Skip to content

Commit 9eefc8a

Browse files
PiDelportblag
authored andcommitted
README: Add instructions for testing with a Docker PostgreSQL
1 parent 28216ea commit 9eefc8a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,13 @@ The cities manage command has options, see `--help`. Verbosity is controlled th
662662
# changes to github and specify commit and repo variables:
663663
TRAVIS_COMMIT=`git rev-parse HEAD` TRAVIS_REPO_SLUG='github-username/django-cities' POSTGRES_USER=some_username POSTGRES_PASSWORD='password from createuser ste' tox
664664

665+
As an alternative to installing and running PostgreSQL system-wide,
666+
you can run the tests against a transient Docker instance:
667+
668+
```bash
669+
docker run --rm -p 127.0.0.1:5432:5432 mdillon/postgis
670+
```
671+
665672
### Useful test options:
666673

667674
* `TRAVIS_LOG_LEVEL` - defaults to `INFO`, but set to `DEBUG` to see a (very) large and (very) complete log of the import script

0 commit comments

Comments
 (0)