forked from postgis/postgis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
52 lines (51 loc) · 1.35 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
.build_definition: &build_definition
except:
- main
before_script:
- apt-get update -qq && apt-get install -y
autoconf
bison
build-essential
docbook-xsl-ns
flex
libcunit1
libcunit1-dev
libgdal-dev
libgeos-dev
libjson-c-dev
libproj-dev
libprotobuf-c1
libprotobuf-c-dev
libtool
libxml2-utils
postgresql-15
postgresql-server-dev-15
protobuf-c-compiler
xsltproc
- 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
- make -C liblwgeom check
- su -c 'make' postgres # idempotence test, see #5099
- 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
test32:
image: i386/debian:bookworm
<<: *build_definition