]> granicus.if.org Git - postgis/commitdiff
[drone] Use trisquel2 image, test all pgsql versions and upgrades
authorSandro Santilli <strk@kbt.io>
Mon, 22 Jan 2018 12:35:11 +0000 (12:35 +0000)
committerSandro Santilli <strk@kbt.io>
Mon, 22 Jan 2018 12:35:11 +0000 (12:35 +0000)
The new docker image also uses newer GEOS (3.6.2).
References #3813 for 2.4 branch
NOTE: could not use -Werror in this branch as it would fail

git-svn-id: http://svn.osgeo.org/postgis/branches/2.4@16353 b70326c6-7e19-0410-871a-916f4a2858ee

.drone.yml

index 3dfef9a247aae6669cd41ccee739ca96e86fa5c8..62a16d7ffd5119a5549a2d817d8507319d9d36db 100644 (file)
@@ -1,7 +1,15 @@
 # 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:
@@ -12,13 +20,15 @@ pipeline:
     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
+      # 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