[postgis-tickets] [SCM] PostGIS branch master updated. 3.2.0-390-ga5a714fb4
git at osgeo.org
git at osgeo.org
Thu Jan 27 14:20:47 PST 2022
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".
The branch, master has been updated
via a5a714fb4867355ea2f47c9f5facf88f85a94b31 (commit)
from e273c14312d8632a40b868586f31b1aae43abce4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit a5a714fb4867355ea2f47c9f5facf88f85a94b31
Author: Sandro Santilli <strk at kbt.io>
Date: Wed Jan 19 14:43:58 2022 +0100
[dronie] Activate parallel steps, using out-of-tree builds
diff --git a/.drone-1.0.yml b/.drone-1.0.yml
index 7e4e6f3f0..7b7af5d69 100644
--- a/.drone-1.0.yml
+++ b/.drone-1.0.yml
@@ -14,21 +14,32 @@ kind: pipeline
name: build
clone: *clone
steps:
+
+ - name: autogen
+ image: *test-image
+ pull: always
+ commands:
+ - ./autogen.sh
+ depends_on: [ clone ]
+
- name: build-9.6
image: *test-image
pull: always
commands:
- PGVER=9.6 sh ci/dronie/postgis_regress.sh
+ depends_on: [ autogen ]
- name: build-10
image: *test-image
pull: always
commands:
- PGVER=10 sh ci/dronie/postgis_regress.sh
+ depends_on: [ autogen ]
- name: build-11
image: *test-image
pull: always
commands:
- PGVER=11 sh ci/dronie/postgis_regress.sh
+ depends_on: [ autogen ]
...
diff --git a/ci/dronie/postgis_regress.sh b/ci/dronie/postgis_regress.sh
index 39af45e5b..001a6041b 100644
--- a/ci/dronie/postgis_regress.sh
+++ b/ci/dronie/postgis_regress.sh
@@ -7,17 +7,44 @@ service postgresql start $PGVER
export PGPORT=`grep ^port /etc/postgresql/$PGVER/main/postgresql.conf | awk '{print $3}'`
export PATH=/usr/lib/postgresql/$PGVER/bin:$PATH
psql --version
-./autogen.sh
-./configure CFLAGS="-O2 -Wall -fno-omit-frame-pointer -Werror" --without-interrupt-tests
-make clean
+
+#-----------------------------------------------
+# Out of tree build for given PostgreSQL version
+#-----------------------------------------------
+
+SRCDIR=$PWD
+BUILDDIR=/tmp/postgis-build/${PGVER}
+mkdir -p "${BUILDDIR}"
+cd "${BUILDDIR}"
+${SRCDIR}/configure CFLAGS="-O2 -Wall -fno-omit-frame-pointer -Werror" --without-interrupt-tests
make -j
+
# we should maybe wait for postgresql service to startup here...
psql -c "select version()" template1
+
+#-----------------------------------------------
+# Pre-install tests
+#-----------------------------------------------
+
RUNTESTFLAGS=-v make check
+
+#-----------------------------------------------
+# Install
+#-----------------------------------------------
+
make install
+
+#-----------------------------------------------
+# Post-install tests
+#-----------------------------------------------
+
RUNTESTFLAGS=-v make installcheck
-CURRENTVERSION=`grep '^POSTGIS_' Version.config | cut -d= -f2 | paste -sd '.'`
-utils/check_all_upgrades.sh -s ${CURRENTVERSION}! | tee check.log
+#-----------------------------------------------
+# Upgrade tests
+#-----------------------------------------------
+
+CURRENTVERSION=`grep '^POSTGIS_' ${SRCDIR}/Version.config | cut -d= -f2 | paste -sd '.'`
+${SRCDIR}/utils/check_all_upgrades.sh -s ${CURRENTVERSION}! | tee check.log
echo "-- Summary of upgrade tests --"
egrep '(PASS|FAIL)' check.log
-----------------------------------------------------------------------
Summary of changes:
.drone-1.0.yml | 11 +++++++++++
ci/dronie/postgis_regress.sh | 37 ++++++++++++++++++++++++++++++++-----
2 files changed, 43 insertions(+), 5 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list