forked from postgis/postgis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
96 lines (91 loc) · 2.91 KB
/
.cirrus.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
task:
only_if: true
name: FreeBSD
alias: test-freebsd
#env:
#MAKE_FLAGS: -j 8
install_script:
- sed -i.bak -e 's,pkg+http://pkg.FreeBSD.org/\${ABI}/quarterly,pkg+http://pkg.FreeBSD.org/\${ABI}/latest,' /etc/pkg/FreeBSD.conf
- ASSUME_ALWAYS_YES=yes pkg bootstrap -f
- pkg install -y
autoconf
automake
bison
cunit
docbook
gdal
geos
gmake
iconv
json-c
libtool
libxml2
libxslt
pcre
pkgconf
postgresql13-contrib
postgresql13-server
proj
protobuf-c
sfcgal
- projsync --system-directory --source-id us_noaa
- projsync --system-directory --source-id ch_swisstopo
patch_script:
# will be removed
- find . -name "*.pl" | xargs sed -i -r 's|/usr/bin/perl|/usr/bin/env perl|'
build_script:
- ./autogen.sh
- ./configure PKG_CONFIG=/usr/local/bin/pkgconf CFLAGS="-isystem /usr/local/include -Wall -fno-omit-frame-pointer -Werror" LDFLAGS="-L/usr/local/lib" --with-libiconv-prefix=/usr/local --without-gui --with-topology --without-raster --with-sfcgal=/usr/local/bin/sfcgal-config --with-address-standardizer --with-protobuf
- service postgresql oneinitdb
- service postgresql onestart
- su postgres -c "createuser -s `whoami`"
- gmake || { service postgresql onestop; exit 1;}
- gmake check RUNTESTFLAGS="-v" || { service postgresql onestop; exit 1;}
- gmake install || { service postgresql onestop; exit 1;}
- gmake check RUNTESTFLAGS="-v --extension" || { service postgresql onestop; exit 1;}
- gmake check RUNTESTFLAGS="-v --extension --dumprestore" || { service postgresql onestop; exit 1;}
- service postgresql onestop
freebsd_instance:
cpu: 8
memory: 24g
matrix:
# - name: 14-CURRENT
# freebsd_instance:
# image_family: freebsd-14-0-snap
- name: 13.2-RELEASE
freebsd_instance:
image_family: freebsd-13-2
task:
name: macOS
alias: test-macos
test_script:
- brew update
- brew install
autoconf
automake
cunit
docbook
docbook-xsl
gdal
geos
gpp
json-c
libtool
pcre2
pkg-config
postgresql@14
proj
protobuf-c
sfcgal
- ./autogen.sh
- ./configure --without-gui --without-interrupt-tests --without-topology --without-raster --with-sfcgal --with-address-standardizer --with-protobuf --with-pgconfig=/opt/homebrew/opt/postgresql@14/bin/pg_config
- brew services start postgresql@14
- postgres -V
- make -j8 || { brew services stop postgresql@14; exit 1;}
- make -j8 check || { brew services stop postgresql@14; exit 1;}
- brew services stop postgresql@14
matrix:
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-base:latest
# macos_instance:
# image: ghcr.io/cirruslabs/macos-monterey-base:latest