postgis/.gitlab-ci.yml

37 lines
1.1 KiB
YAML

.build_definition: &build_definition
except:
- main
before_script:
- apt-get update -qq && apt-get install -y
bison flex
postgresql-15 postgresql-server-dev-15
build-essential autoconf libtool libcunit1-dev
xsltproc docbook-xsl docbook-mathml dblatex
libproj-dev libgdal-dev libgeos-dev libjson-c-dev
libprotobuf-c1 libprotobuf-c-dev protobuf-c-compiler
- lsb_release -a
- uname -a
- service postgresql start
- su -l postgres -c "createuser -s `whoami`"
script:
- ./autogen.sh
- ./configure
- make maintainer-clean
- ./autogen.sh
- chattr -R +i . # mark source tree as immutable
- export SRCDIR="${PWD}"
- echo "SRCDIR is ${SRCDIR}"
- mkdir /tmp/build && cd /tmp/build
- echo "Build dir is ${PWD}"
- ${SRCDIR}/configure --without-raster CFLAGS="-Wall -fno-omit-frame-pointer -Werror"
- make
- RUNTESTFLAGS="-v --dumprestore" make check-regress
- make install
- RUNTESTFLAGS="-v --dumprestore" make installcheck
- make distclean
- ${SRCDIR}/utils/check_distclean.sh
test:
image: debian:bookworm
<<: *build_definition