]> granicus.if.org Git - postgis/commitdiff
[drone] Add drone-1.0 config
authorSandro Santilli <strk@kbt.io>
Thu, 6 Jun 2019 10:24:48 +0000 (10:24 +0000)
committerSandro Santilli <strk@kbt.io>
Thu, 6 Jun 2019 10:24:48 +0000 (10:24 +0000)
git-svn-id: http://svn.osgeo.org/postgis/branches/2.3@17478 b70326c6-7e19-0410-871a-916f4a2858ee

.drone-1.0.yml [new file with mode: 0644]

diff --git a/.drone-1.0.yml b/.drone-1.0.yml
new file mode 100644 (file)
index 0000000..22adb6b
--- /dev/null
@@ -0,0 +1,121 @@
+# This is for the drone 1.0 agent
+# https://docs.drone.io/user-guide/pipeline/steps/
+# https://dronie.osgeo.org #1.0 server
+
+# See https://git.osgeo.org/gitea/postgis/postgis-docker
+# todo: add docker images from https://hub.docker.com/r/postgis/postgis-build-env/tags/
+test-image: &test-image docker.kbt.io/postgis/build-test:trisquel2
+kind: pipeline
+name: pg-9.3
+steps:
+  - name: build
+    image: *test-image
+    pull: true
+    commands:
+      - export PGVER=9.3
+      - 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 -fno-omit-frame-pointer" --without-interrupt-tests
+      - make -j
+      # 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 -s
+        `grep '^POSTGIS_' Version.config | cut -d= -f2 | paste -sd '.'`
+---
+test-image: &test-image docker.kbt.io/postgis/build-test:trisquel2
+kind: pipeline
+name: pg-9.4
+steps:
+  - name: build
+    image: *test-image
+    pull: true
+    commands:
+      - export PGVER=9.4
+      - 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 -fno-omit-frame-pointer" --without-interrupt-tests
+      - make -j
+      # 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 -s
+        `grep '^POSTGIS_' Version.config | cut -d= -f2 | paste -sd '.'`
+---
+test-image: &test-image docker.kbt.io/postgis/build-test:trisquel2
+kind: pipeline
+name: pg-9.5
+steps:
+  - name: build
+    image: *test-image
+    pull: true
+    commands:
+      - export PGVER=9.5
+      - 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 -fno-omit-frame-pointer" --without-interrupt-tests
+      - make -j
+      # 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 -s
+        `grep '^POSTGIS_' Version.config | cut -d= -f2 | paste -sd '.'`
+---
+test-image: &test-image docker.kbt.io/postgis/build-test:trisquel2
+kind: pipeline
+name: pg-9.6
+steps:
+  - name: build
+    image: *test-image
+    pull: true
+    commands:
+      - export PGVER=9.6
+      - 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 -fno-omit-frame-pointer" --without-interrupt-tests
+      - make -j
+      # 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 -s
+        `grep '^POSTGIS_' Version.config | cut -d= -f2 | paste -sd '.'`
+---
+test-image: &test-image docker.kbt.io/postgis/build-test:trisquel2
+kind: pipeline
+name: pg-10
+steps:
+  - name: build
+    image: *test-image
+    pull: true
+    commands:
+      - export PGVER=10
+      - 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 -fno-omit-frame-pointer" --without-interrupt-tests
+      - make -j
+      # 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 -s
+        `grep '^POSTGIS_' Version.config | cut -d= -f2 | paste -sd '.'`
+...