.drone-1.0.yml 2.7 KB
Newer Older
1 2 3 4 5
# 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
6
# todo: add docker images from https://hub.docker.com/r/postgis/postgis-build-env/tags/
7
test-image: &test-image docker.kbt.io/postgis/build-test:trisquel2
8 9 10
kind: pipeline
name: pg-9.5
steps:
11
  - name: build
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
    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 -Werror" --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
        `grep '^POSTGIS_' Version.config | cut -d= -f2 | paste -sd '.'`
---
30
test-image: &test-image docker.kbt.io/postgis/build-test:trisquel2
31 32 33
kind: pipeline
name: pg-9.6
steps:
34
  - name: build
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
    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 -Werror" --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
        `grep '^POSTGIS_' Version.config | cut -d= -f2 | paste -sd '.'`
---
53
test-image: &test-image docker.kbt.io/postgis/build-test:trisquel2
54 55
kind: pipeline
name: pg-10
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
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 -Werror" --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
        `grep '^POSTGIS_' Version.config | cut -d= -f2 | paste -sd '.'`
75
...