[postgis-tickets] r16354 - [drone] Use trisquel2 image, test all pgsql versions and upgrades

Sandro Santilli strk at kbt.io
Mon Jan 22 04:37:28 PST 2018


Author: strk
Date: 2018-01-22 04:37:27 -0800 (Mon, 22 Jan 2018)
New Revision: 16354

Modified:
   branches/2.3/.drone.yml
Log:
[drone] Use trisquel2 image, test all pgsql versions and upgrades

The new docker image also uses newer GEOS (3.6.2).
References #3813 for 2.3 branch
NOTE: -Werror is not used in this branch

Modified: branches/2.3/.drone.yml
===================================================================
--- branches/2.3/.drone.yml	2018-01-22 12:35:11 UTC (rev 16353)
+++ branches/2.3/.drone.yml	2018-01-22 12:37:27 UTC (rev 16354)
@@ -1,8 +1,16 @@
 # See http://readme.drone.io/0.5/usage/overview
 
-# See https://git.osgeo.org/gogs/postgis/postgis-docker
-test-image: &test-image docker.kbt.io/postgis/build-test:trisquel
+# See https://git.osgeo.org/gitea/postgis/postgis-docker
+test-image: &test-image docker.kbt.io/postgis/build-test:trisquel2
 
+matrix:
+  PGVER:
+    - 9.3
+    - 9.4
+    - 9.5
+    - 9.6
+    - 10
+
 pipeline:
   clone:
     image: plugins/git
@@ -12,14 +20,15 @@
     image: *test-image
     pull: true
     commands:
+      - 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="-O0 -Wall" --without-interrupt-tests
+      - ./configure CFLAGS="-O0 -Wall -fno-omit-frame-pointer" --without-interrupt-tests
       - make
-  check:
-    image: *test-image
-    commands:
-      - service postgresql start
-      - while :; do psql -tAc "select version()" template1 && break; sleep 10; done
+      # we should maybe wait for postgresql service to startup here...
+      - psql -c "select version()" template1
       - make check RUNTESTFLAGS=-v
       - make install
       - utils/check_all_upgrades.sh



More information about the postgis-tickets mailing list