@@ -138,6 +138,7 @@ task:
138
138
TEST_JOBS : 3
139
139
140
140
CCACHE_DIR : /tmp/ccache_dir
141
+ INSTALL_DIR : /tmp/meson-install
141
142
CPPFLAGS : -DRELCACHE_FORCE_RELEASE -DCOPY_PARSE_PLAN_TREES -DWRITE_READ_PARSE_PLAN_TREES -DRAW_EXPRESSION_COVERAGE_TEST
142
143
CFLAGS : -Og -ggdb
143
144
@@ -181,12 +182,14 @@ task:
181
182
su postgres <<-EOF
182
183
meson setup \
183
184
--buildtype=debug \
185
+ --prefix=${INSTALL_DIR} \
184
186
-Dcassert=true -Dssl=openssl -Duuid=bsd -Dtcl_version=tcl86 -Ddtrace=auto \
185
187
-DPG_TEST_EXTRA="$PG_TEST_EXTRA" \
186
188
-Dextra_lib_dirs=/usr/local/lib -Dextra_include_dirs=/usr/local/include/ \
187
189
build
188
190
EOF
189
191
build_script : su postgres -c 'ninja -C build -j${BUILD_JOBS}'
192
+ install_script : su postgres -c 'ninja -C build install'
190
193
upload_caches : ccache
191
194
192
195
test_world_script : |
@@ -201,13 +204,13 @@ task:
201
204
set -e
202
205
ulimit -c unlimited
203
206
meson test $MTEST_ARGS --quiet --suite setup
204
- export LD_LIBRARY_PATH="$(pwd)/build/tmp_install/usr/local/pgsql /lib/:$LD_LIBRARY_PATH"
207
+ export LD_LIBRARY_PATH="${INSTALL_DIR} /lib/:$LD_LIBRARY_PATH"
205
208
mkdir -p build/testrun
206
- build/tmp_install/usr/local/pgsql /bin/initdb -N build/runningcheck --no-instructions -A trust
209
+ ${INSTALL_DIR} /bin/initdb -N build/runningcheck --no-instructions -A trust
207
210
echo "include '$(pwd)/src/tools/ci/pg_ci_base.conf'" >> build/runningcheck/postgresql.conf
208
- build/tmp_install/usr/local/pgsql /bin/pg_ctl -c -o '-c fsync=off' -D build/runningcheck -l build/testrun/runningcheck.log start
211
+ ${INSTALL_DIR} /bin/pg_ctl -c -o '-c fsync=off' -D build/runningcheck -l build/testrun/runningcheck.log start
209
212
meson test $MTEST_ARGS --num-processes ${TEST_JOBS} --setup running
210
- build/tmp_install/usr/local/pgsql /bin/pg_ctl -D build/runningcheck stop
213
+ ${INSTALL_DIR} /bin/pg_ctl -D build/runningcheck stop
211
214
EOF
212
215
213
216
on_failure :
@@ -225,6 +228,7 @@ task:
225
228
226
229
CIRRUS_WORKING_DIR : /home/postgres/postgres
227
230
CCACHE_DIR : /tmp/ccache_dir
231
+ INSTALL_DIR : /tmp/meson-install
228
232
229
233
PATH : /usr/sbin:$PATH
230
234
@@ -282,13 +286,15 @@ task:
282
286
su postgres <<-EOF
283
287
meson setup \
284
288
--buildtype debug \
289
+ --prefix=${INSTALL_DIR} \
285
290
-Dcassert=true -Dssl=openssl ${UUID} \
286
291
-DPG_TEST_EXTRA="$PG_TEST_EXTRA" \
287
292
${INCLUDE_DIRS} \
288
293
build
289
294
EOF
290
295
291
296
build_script : su postgres -c 'ninja -C build -j${BUILD_JOBS}'
297
+ install_script : su postgres -c 'ninja -C build install'
292
298
upload_caches : ccache
293
299
294
300
test_world_script : |
@@ -350,6 +356,7 @@ task:
350
356
TEST_JOBS : 8 # experimentally derived to be a decent choice
351
357
352
358
CCACHE_DIR : /tmp/ccache_dir
359
+ INSTALL_DIR : /tmp/meson-install
353
360
DEBUGINFOD_URLS : " https://debuginfod.debian.net"
354
361
355
362
# Enable a reasonable set of sanitizers. Use the linux task for that, as
@@ -449,6 +456,7 @@ task:
449
456
su postgres <<-EOF
450
457
meson setup \
451
458
--buildtype=debug \
459
+ --prefix=${INSTALL_DIR} \
452
460
-Dcassert=true \
453
461
${LINUX_MESON_FEATURES} \
454
462
-DPG_TEST_EXTRA="$PG_TEST_EXTRA" \
@@ -462,6 +470,7 @@ task:
462
470
export CC='ccache gcc -m32'
463
471
meson setup \
464
472
--buildtype=debug \
473
+ --prefix=${INSTALL_DIR}-32 \
465
474
-Dcassert=true \
466
475
${LINUX_MESON_FEATURES} \
467
476
-Dllvm=disabled \
@@ -473,6 +482,7 @@ task:
473
482
474
483
build_script : su postgres -c 'ninja -C build -j${BUILD_JOBS}'
475
484
build_32_script : su postgres -c 'ninja -C build-32 -j${BUILD_JOBS}'
485
+ install_script : su postgres -c 'ninja -C build install'
476
486
477
487
upload_caches : ccache
478
488
@@ -484,6 +494,8 @@ task:
484
494
# so that we don't upload 64bit logs if 32bit fails
485
495
rm -rf build/
486
496
497
+ install_32_script : su postgres -c 'ninja -C build-32 install'
498
+
487
499
# There's currently no coverage of icu with LANG=C in the buildfarm. We
488
500
# can easily provide some here by running one of the sets of tests that
489
501
# way. Newer versions of python insist on changing the LC_CTYPE away
@@ -508,6 +520,7 @@ task:
508
520
TEST_JOBS : 8 # experimentally derived to be a decent choice
509
521
510
522
CCACHE_DIR : /tmp/ccache_dir
523
+ INSTALL_DIR : /tmp/meson-install
511
524
DEBUGINFOD_URLS : ${DEBUGINFO}
512
525
513
526
TCL_DIR : /usr/lib64/
@@ -559,12 +572,14 @@ task:
559
572
su postgres <<-EOF
560
573
meson setup \
561
574
--buildtype debug \
575
+ --prefix=${INSTALL_DIR} \
562
576
-Dcassert=true -Dssl=openssl -Duuid=e2fs ${LLVM} \
563
577
-DPG_TEST_EXTRA="$PG_TEST_EXTRA" \
564
578
build
565
579
EOF
566
580
567
581
build_script : su postgres -c 'ninja -C build -j${BUILD_JOBS}'
582
+ install_script : su postgres -c 'ninja -C build install'
568
583
upload_caches : ccache
569
584
570
585
test_world_script : |
@@ -590,6 +605,7 @@ task:
590
605
591
606
CIRRUS_WORKING_DIR : ${HOME}/pgsql/
592
607
CCACHE_DIR : ${HOME}/ccache
608
+ INSTALL_DIR : /tmp/meson-install
593
609
HOMEBREW_CACHE : ${HOME}/homebrew-cache
594
610
PERL5LIB : ${HOME}/perl5/lib/perl5
595
611
@@ -662,6 +678,8 @@ task:
662
678
663
679
meson setup \
664
680
--buildtype=debug \
681
+ --prefix=${INSTALL_DIR} \
682
+ -Dpkg_config_path=$PKG_CONFIG_PATH \
665
683
-Dextra_include_dirs=${brewpath}/include \
666
684
-Dextra_lib_dirs=${brewpath}/lib \
667
685
-Dcassert=true \
@@ -671,6 +689,7 @@ task:
671
689
build
672
690
673
691
build_script : ninja -C build -j${BUILD_JOBS}
692
+ install_script : ninja -C build install
674
693
upload_caches : ccache
675
694
676
695
test_world_script : |
0 commit comments