[postgis-tickets] r15812 - Do not check upgrades as docker build does not have upgradable versions

Sandro Santilli strk at kbt.io
Sun Sep 24 02:26:31 PDT 2017


Author: strk
Date: 2017-09-24 02:26:31 -0700 (Sun, 24 Sep 2017)
New Revision: 15812

Removed:
   branches/2.1/utils/check_all_upgrades.sh
Modified:
   branches/2.1/.drone.yml
Log:
Do not check upgrades as docker build does not have upgradable versions

Modified: branches/2.1/.drone.yml
===================================================================
--- branches/2.1/.drone.yml	2017-09-24 09:18:15 UTC (rev 15811)
+++ branches/2.1/.drone.yml	2017-09-24 09:26:31 UTC (rev 15812)
@@ -21,5 +21,3 @@
       - service postgresql start
       - make check RUNTESTFLAGS=-v
       - make install
-      - utils/check_all_upgrades.sh \
-        `grep '^POSTGIS_' Version.config | cut -d= -f2 | paste -sd '.'`

Deleted: branches/2.1/utils/check_all_upgrades.sh
===================================================================
--- branches/2.1/utils/check_all_upgrades.sh	2017-09-24 09:18:15 UTC (rev 15811)
+++ branches/2.1/utils/check_all_upgrades.sh	2017-09-24 09:26:31 UTC (rev 15812)
@@ -1,24 +0,0 @@
-#!/bin/sh
-
-if test -z "$1"; then
-  echo "Usage: $0 <to_version>" >&2
-  exit 1
-fi
-to_version="$1"
-
-BUILDDIR=$PWD
-EXTDIR=`pg_config --sharedir`/extension/
-
-cd $EXTDIR
-'ls' postgis--* | grep -v -- '--.*--' |
-sed 's/^postgis--\(.*\)\.sql/\1/' | while read fname; do
-  from_version="$fname"
-  UPGRADE_PATH="${from_version}--${to_version}"
-  if test -e postgis--${UPGRADE_PATH}.sql; then
-    echo "Testing upgrade $UPGRADE_PATH"
-    export RUNTESTFLAGS="-v --extension --upgrade-path=${UPGRADE_PATH}"
-    make -C ${BUILDDIR}/regress check || exit 1
-  else
-    echo "Missing script for $UPGRADE_PATH upgrade" >&2
-  fi
-done



More information about the postgis-tickets mailing list