Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
9308404
[travis] updating travis yml file to current travis way of working
cvvergara May 18, 2020
d1e97c7
[tools] updating some developer tools
cvvergara May 18, 2020
b738b69
[doc][contraction] fixing table structure
cvvergara May 18, 2020
cad7468
[sql][experimental] giving an order to the results
cvvergara May 18, 2020
8776ec5
[version] pumping up to 3.0.0 (final)
cvvergara May 18, 2020
fd06e47
[doc] standarizing double precision results & remove unused file
cvvergara May 18, 2020
698deb6
[locale] updating locale to match current documentation
cvvergara May 18, 2020
7ea8854
Merge pull request #1349 from cvvergara/fix-travis
cvvergara May 19, 2020
0a69dbe
Apply translations in es
transifex-integration[bot] May 19, 2020
9be4525
Apply translations in es
transifex-integration[bot] May 19, 2020
b6147c9
Apply translations in es
transifex-integration[bot] May 19, 2020
6f78e56
Apply translations in es
transifex-integration[bot] May 19, 2020
3251ace
Apply translations in es
transifex-integration[bot] May 19, 2020
b562338
Merge pull request #1350 from pgRouting/translations_pgr-pickdelivere…
cvvergara May 19, 2020
48360ef
Merge branch 'master' into translations_vrp-category-po--master_es
cvvergara May 19, 2020
0c17adc
Merge pull request #1351 from pgRouting/translations_vrp-category-po-…
cvvergara May 19, 2020
c102bb2
Merge branch 'master' into translations_pgr-bdastarcost-po--master_es
cvvergara May 19, 2020
a879431
Merge pull request #1352 from pgRouting/translations_pgr-bdastarcost-…
cvvergara May 19, 2020
4b4c838
Merge branch 'master' into translations_pgrouting-introduction-po--ma…
cvvergara May 19, 2020
feaeba8
Merge pull request #1353 from pgRouting/translations_pgrouting-introd…
cvvergara May 19, 2020
85da4bb
Merge branch 'master' into translations_contraction-family-po--master_es
cvvergara May 19, 2020
4abf68c
Merge pull request #1354 from pgRouting/translations_contraction-fami…
cvvergara May 20, 2020
acd1559
fixing typos
cvvergara May 21, 2020
cff856b
[doc] not documenting boost functions
cvvergara May 21, 2020
f4de22f
Merge branch 'master' of https://github.com/pgRouting/pgrouting
cvvergara May 21, 2020
a6051fe
[depthFirstSearch] Added SQL files and depthFirstSearch.c
krashish8 May 17, 2020
bb6458a
[depthFirstSearch] Added depthFirstSearch driver and header file
krashish8 May 17, 2020
4a162c4
[depthFirstSearch] Added SQL files for pgTAP tests
krashish8 May 17, 2020
51188f4
[depthFirstSearch] [doc] Added basic skeleton
krashish8 May 17, 2020
13489f8
[depthFirstSearch] [docqueries] Added basic files
krashish8 May 17, 2020
13ece1a
[depthFirstSearch] Removed unnecessary parameters in internal function
krashish8 May 18, 2020
fa7cb30
[depthFirstSearch] Added directed boolean parameter
krashish8 May 18, 2020
4a1710c
[depthFirstSearch] Small file changes, adding comments and debugging
krashish8 May 20, 2020
edb7c23
[depthFirstSearch] Returning empty rows in case of empty edges_sql query
krashish8 May 20, 2020
d54ad11
[depthFirstSearch] Completed basic skeleton, currently algorithm retu…
krashish8 May 21, 2020
368d546
[depthFirstSearch] Adjusting docqueries test according to current imp…
krashish8 May 21, 2020
a7e94e1
[depthFirstSearch] Modified pgTAP tests according to current implemen…
krashish8 May 21, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
185 changes: 95 additions & 90 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# Main configuration
# ------------------------------------------------------------------------------

os: linux
dist: xenial
sudo: required


language: cpp
Expand All @@ -16,135 +16,140 @@ compiler:

python:
- "3.5"
- "pypy3.5"
- "pypy3"

matrix:

jobs:
include:
- os: linux
env: POSTGRESQL_VERSION=10 DOCUMENTATION=OFF BUILD_TYPE=Debug
addons:
postgresql: 10
- addons:
postgresql: "9.5"
apt:
sources:
- boost-latest
- ubuntu-toolchain-r-test
packages:
- postgresql-10-postgis-2.4
- postgresql-10-postgis-2.4-scripts
- postgresql-10-pgtap
- postgresql-server-dev-10
- libboost-graph-dev
- postgresql-9.5-postgis-2.4
- postgresql-server-dev-9.5
- postgresql-9.5-pgtap
- libtap-parser-sourcehandler-pgtap-perl

- os: linux
env: POSTGRESQL_VERSION=9.6 DOCUMENTATION=OFF BUILD_TYPE=Debug
addons:
postgresql: 9.6
- libboost-graph-dev
env:
PGPORT: "5432"
POSTGRESQL_VERSION: 9.5
BUILD_TYPE: "Debug"
DOCUMENTATION: "OFF"

- addons:
postgresql: "9.6"
apt:
sources:
- boost-latest
- ubuntu-toolchain-r-test
packages:
- postgresql-9.6-postgis-2.4
- postgresql-9.6-postgis-2.4-scripts
- postgresql-9.6-pgtap
- postgresql-server-dev-9.6
- libboost-graph-dev
- postgresql-9.6-pgtap
- libtap-parser-sourcehandler-pgtap-perl

- os: linux
env: POSTGRESQL_VERSION=9.5 DOCUMENTATION=OFF BUILD_TYPE=Debug
addons:
postgresql: 9.5
- libboost-graph-dev
env:
PGPORT: "5432"
POSTGRESQL_VERSION: 9.6
BUILD_TYPE: "Debug"
DOCUMENTATION: "OFF"

- addons:
postgresql: "10"
apt:
sources:
- boost-latest
- ubuntu-toolchain-r-test
packages:
- postgresql-9.5-postgis-2.4
- postgresql-9.5-postgis-2.4-scripts
- postgresql-9.5-pgtap
- postgresql-server-dev-9.5
- libboost-graph-dev
- postgresql-10-postgis-2.4
- postgresql-server-dev-10
- postgresql-10-pgtap
- libtap-parser-sourcehandler-pgtap-perl

- os: linux
env: POSTGRESQL_VERSION=9.4 DOCUMENTATION=OFF BUILD_TYPE=Debug
addons:
postgresql: 9.4
- libboost-graph-dev
env:
PGPORT: "5432"
POSTGRESQL_VERSION: 10
BUILD_TYPE: "Debug"
DOCUMENTATION: "OFF"

- addons:
postgresql: "11"
apt:
sources:
- boost-latest
- ubuntu-toolchain-r-test
packages:
- postgresql-9.4-postgis-2.4
- postgresql-9.4-postgis-2.4-scripts
- postgresql-9.4-pgtap
- postgresql-server-dev-9.4
- libboost-graph-dev
- postgresql-11-postgis-3
- postgresql-server-dev-11
- postgresql-11-pgtap
- postgresql-client-11
- postgresql-client-common
- postgresql-common
- libtap-parser-sourcehandler-pgtap-perl

- os: linux
env: POSTGRESQL_VERSION=9.6 DOCUMENTATION=OFF BUILD_TYPE=Release
addons:
postgresql: 9.6
- libboost-graph-dev
env:
PGPORT: "5433"
PGVERSION: 11
POSTGRESQL_VERSION: 11
BUILD_TYPE: "Debug"
DOCUMENTATION: "OFF"
- addons:
postgresql: "12"
apt:
sources:
- boost-latest
- ubuntu-toolchain-r-test
packages:
- postgresql-9.6-postgis-2.4
- postgresql-9.6-postgis-2.4-scripts
- postgresql-9.6-pgtap
- postgresql-server-dev-9.6
- libboost-graph-dev
- postgresql-12-postgis-3
- postgresql-server-dev-12
- postgresql-12-pgtap
- postgresql-client-12
- postgresql-client-common
- postgresql-common
- libtap-parser-sourcehandler-pgtap-perl

- os: linux
env: POSTGRESQL_VERSION=9.6 DOCUMENTATION=ON BUILD_TYPE=Release
addons:
postgresql: 9.6
- libboost-graph-dev
env:
PGPORT: "5433"
PGVERSION: 12
POSTGRESQL_VERSION: 12
BUILD_TYPE: "Debug"
DOCUMENTATION: "OFF"
- addons:
postgresql: "12"
apt:
sources:
- boost-latest
- ubuntu-toolchain-r-test
packages:
- postgresql-server-dev-9.6
- postgresql-12-postgis-3
- postgresql-server-dev-12
- postgresql-12-pgtap
- postgresql-client-12
- postgresql-client-common
- postgresql-common
- libtap-parser-sourcehandler-pgtap-perl
- libboost-graph-dev
- python-sphinx

- graphviz
env:
PGPORT: "5433"
PGVERSION: 12
POSTGRESQL_VERSION: 12
BUILD_TYPE: "Release"
DOCUMENTATION: "ON"

services:
- postgresql

before_install:
- sudo updatedb
- locate pg_config
- PGR_VERSION=$(grep -Po '(?<=project\(PGROUTING VERSION )[^;]+' CMakeLists.txt)
- echo "Building for $PGR_VERSION"
- sudo service postgresql stop
- sed -e 's/^port.*/port = 5432/' /etc/postgresql/$POSTGRESQL_VERSION/main/postgresql.conf > postgresql.conf
- sudo chown postgres postgresql.conf
- sudo mv postgresql.conf /etc/postgresql/$POSTGRESQL_VERSION/main
- sudo service postgresql start
- "if [ ! -z $PGVERSION ]; then sudo cp /etc/postgresql/{9.6,$PGVERSION}/main/pg_hba.conf; fi"
- "if [ ! -z $PGVERSION ]; then sudo service postgresql restart $PGVERSION; fi"

install:
- if [ "$DOCUMENTATION" == "ON" ]; then sphinx-build --version; fi
- pip install --user sphinx==1.6.5


before_script:
- export PATH=/usr/lib/postgresql/$POSTGRESQL_VERSION/bin:$PATH
- if [ "$DOCUMENTATION" == "OFF" ]; then /usr/lib/postgresql/$POSTGRESQL_VERSION/bin/psql -p 5432 -U postgres -c "CREATE EXTENSION postgis"; fi
# initialize databases
- psql --version
- psql -c 'SELECT version();' -U postgres -p $PGPORT
- createdb -U postgres ___pgr___test___
- createdb -U postgres pgr_test__db__test
- psql -U postgres -c "CREATE EXTENSION postgis" -d ___pgr___test___
- mkdir build
- cd build
- cmake -DPOSTGRESQL_VERSION=$POSTGRESQL_VERSION -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DWITH_DOC=$DOCUMENTATION ..

script:
- if [ "$DOCUMENTATION" == "OFF" ]; then make; sudo make install; sudo cp /usr/lib/postgresql/11/lib/libpgrouting-3.0.so /usr/lib/postgresql/$POSTGRESQL_VERSION/lib/libpgrouting-3.0.so; sudo cp /usr/share/postgresql/11/extension/pgrouting* /usr/share/postgresql/$POSTGRESQL_VERSION/extension; fi
- if [ "$DOCUMENTATION" == "OFF" ]; then make -j 4; sudo make install; fi
- if [ "$DOCUMENTATION" == "ON" ]; then make doc; fi

# tests as part of script so if a test fails the build fails
- cd ..
- if [ "$DOCUMENTATION" == "OFF" ]; then bash ./tools/testers/pg_prove_tests.sh postgres 5432 $BUILD_TYPE; fi
- if [ "$DOCUMENTATION" == "OFF" ]; then bash ./tools/testers/pg_prove_tests.sh postgres $PGPORT $BUILD_TYPE; fi
- if [ "$DOCUMENTATION" == "OFF" ] && [ "$BUILD_TYPE" == "Debug" ]; then bash ./ci/travis/doc-quieries_test.sh $POSTGRESQL_VERSION postgres; fi

5 changes: 5 additions & 0 deletions .tx/config
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,11 @@ file_filter = locale/<lang>/LC_MESSAGES/proposed.po
source_file = locale/pot/proposed.pot
source_lang = en

[pgrouting.experimental-po--master]
file_filter = locale/<lang>/LC_MESSAGES/experimental.po
source_file = locale/pot/experimental.pot
source_lang = en

[pgrouting.pgrouting-installation-po--master]
file_filter = locale/<lang>/LC_MESSAGES/pgRouting-installation.po
source_file = locale/pot/pgRouting-installation.pot
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ include(pgr/BuildType)

project(PGROUTING VERSION 3.0.0
LANGUAGES C CXX )
set(PGROUTING_VERSION_DEV "-rc1")
set(PGROUTING_VERSION_DEV "")

include(pgr/GitInfo)

Expand Down
7 changes: 6 additions & 1 deletion ci/travis/doc-quieries_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ then
ERROR=1
fi

./tools/testers/doc_queries_generator.pl -pgver "${POSTGRESQL_VERSION}" -pguser "${PGUSER}" -documentation
TESTDIRS="version"
for d in ${TESTDIRS}
do
./tools/testers/doc_queries_generator.pl -pgver "${POSTGRESQL_VERSION}" -pguser "${PGUSER}" -documentation -alg "${d}"
done

./tools/testers/doc_queries_generator.pl -pgver "${POSTGRESQL_VERSION}" -pguser "${PGUSER}"

if [ "$?" -ne 0 ]
Expand Down
1 change: 1 addition & 0 deletions configuration.conf
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ version | Y | Y | Y
topologicalSort | Y | Y | Y
transitiveClosure | Y | Y | Y
breadthFirstSearch | Y | Y | Y
depthFirstSearch | Y | Y | N
#----------------------
# SQL only directories
#----------------------
Expand Down
22 changes: 12 additions & 10 deletions doc/contraction/contraction-family.rst
Original file line number Diff line number Diff line change
Expand Up @@ -423,21 +423,23 @@ Add additional columns

Adding extra columns to the ``edge_table`` and ``edge_table_vertices_pgr`` tables, where:

======================= ==================================================
======================== ==================================================
Column Description
======================= ==================================================
**contracted_vertices** The vertices set belonging to the vertex/edge
**is_contracted** On the `vertex` table
======================== ==================================================
**contracted_vertices** The vertices set belonging to the vertex/edge
**is_contracted** On the `vertex` table

* when ``true`` the vertex is contracted, its not part of the contracted graph.
* when ``false`` the vertex is not contracted, its part of the contracted graph.
* when ``true`` the vertex is contracted, its not part of the contracted graph.
* when ``false`` the vertex is not contracted, its part of the contracted graph.

**is_new** On the `edge` table:
**is_new** On the `edge` table:

* when ``true`` the edge was generated by the contraction algorithm. its part of the contracted graph.
* when ``false`` the edge is an original edge, might be or not part of the contracted graph.

======================== ==================================================

* when ``true`` the edge was generated by the contraction algorithm. its part of the contracted graph.
* when ``false`` the edge is an original edgei, might be or not part of the contracted graph.

======================= ==================================================

.. literalinclude:: doc-contraction-family.queries
:start-after: -- q1
Expand Down
12 changes: 12 additions & 0 deletions doc/depthFirstSearch/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

SET(LOCAL_FILES
pgr_depthFirstSearch.rst
)

foreach (f ${LOCAL_FILES})
configure_file(${f} "${PGR_DOCUMENTATION_SOURCE_DIR}/${f}")
list(APPEND LOCAL_DOC_FILES ${PGR_DOCUMENTATION_SOURCE_DIR}/${f})
endforeach()

set(PGROUTING_DOC_FILES ${PGROUTING_DOC_FILES} ${LOCAL_DOC_FILES} PARENT_SCOPE)

Loading