Skip to content

Commit

Permalink
Merge pull request #1566 from henrykironde/docs-pass
Browse files Browse the repository at this point in the history
Update Postgres passwordless setup
  • Loading branch information
henrykironde committed Mar 24, 2021
2 parents 8cc3112 + 32e5a85 commit c4840b3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
5 changes: 1 addition & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ from `localhost`.

## Continuous integration

We use [Travis CI](https://travis-ci.org/) for continuous integration
We use GitHub actions and appveyor for continuous integration
testing. All pull requests will automatically report whether the tests are
passing.

Our postgreSQL tests fail idiosyncratically on Travis, so if only the postgres
tests are failing it on Travis, and they are passing locally, it is likely not a
problem.
4 changes: 3 additions & 1 deletion docs/developer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ and `MySQL Password File`_

::

localhost:*:testdb_retriever:postgres:Password12!
localhost:*:*:postgres:Password12!

**Postgress:**

Expand Down Expand Up @@ -159,6 +159,8 @@ Run commands in terminal to create user
Testing
=======

Before running the tests make sure Postgis is set up `Spatial database setup`_.

Follow these instructions to run a complete set of tests for any branch
Clone the branch you want to test.

Expand Down
24 changes: 14 additions & 10 deletions docs/spatial_dbms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,32 +22,27 @@ Supporting installation of spatial data into `Postgres DBMS`.

**For example, this could be a sample of paths exported on Mac:**

#~/.bash_profile file, Postgres PATHS and tools .

.. code-block::
#~/.bash_profile file, Postgres PATHS and tools .
export PATH="/Applications/Postgres.app/Contents/MacOS/bin:${PATH}"
export PATH="$PATH:/Applications/Postgres.app/Contents/Versions/10/bin"
2. **Enable PostGIS extensions**

If you have Postgres set up, enable `PostGIS extensions`.
This is done by using either `Postgres CLI` or `GUI(PgAdmin)` and run
**For psql CLI**
This is done by using either `Postgres CLI` or `GUI(PgAdmin)` and run the commands below.

.. note::
PostGIS excluded the raster types and functions from the main extension as of version 3.x;
A separate CREATE EXTENSION postgis_raster; is then needed to get raster support.

Versions 2.x have full raster support as part of the main extension environment,
so CREATE EXTENSION postgis; is all that you need`
**For psql CLI**

.. code-block::
psql -d yourdatabase -c "CREATE EXTENSION postgis;"
psql -d yourdatabase -c "CREATE EXTENSION postgis_topology;"
**For GUI(PgAdmin)**
**For GUI(PgAdmin)**

.. code-block::
Expand All @@ -56,6 +51,15 @@ Supporting installation of spatial data into `Postgres DBMS`.
For more details refer to the `Postgis docs`_.

.. note::


PostGIS excluded the raster types and functions from the main extension as of version 3.x;
A separate CREATE EXTENSION postgis_raster; is then needed to get raster support.

Versions 2.x have full raster support as part of the main extension environment,
so CREATE EXTENSION postgis; is all that you need`


.. _PostgreSQL download: https://www.postgresql.org/download/
.. _Postgres.app: https://postgresapp.com/
Expand Down

0 comments on commit c4840b3

Please sign in to comment.