@@ -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 -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 :
@@ -231,6 +234,7 @@ task:
231
234
232
235
CIRRUS_WORKING_DIR : /home/postgres/postgres
233
236
CCACHE_DIR : /tmp/ccache_dir
237
+ INSTALL_DIR : /tmp/meson-install
234
238
235
239
PATH : /usr/sbin:$PATH
236
240
@@ -288,13 +292,15 @@ task:
288
292
su postgres <<-EOF
289
293
meson setup \
290
294
--buildtype debug \
295
+ --prefix=${INSTALL_DIR} \
291
296
-Dcassert=true -Dssl=openssl ${UUID} \
292
297
-DPG_TEST_EXTRA="$PG_TEST_EXTRA" \
293
298
${INCLUDE_DIRS} \
294
299
build
295
300
EOF
296
301
297
302
build_script : su postgres -c 'ninja -C build -j${BUILD_JOBS}'
303
+ install_script : su postgres -c 'ninja -C build install'
298
304
upload_caches : ccache
299
305
300
306
test_world_script : |
@@ -355,6 +361,7 @@ task:
355
361
TEST_JOBS : 8 # experimentally derived to be a decent choice
356
362
357
363
CCACHE_DIR : /tmp/ccache_dir
364
+ INSTALL_DIR : /tmp/meson-install
358
365
DEBUGINFOD_URLS : " https://debuginfod.debian.net"
359
366
360
367
# Enable a reasonable set of sanitizers. Use the linux task for that, as
@@ -462,6 +469,7 @@ task:
462
469
su postgres <<-EOF
463
470
meson setup \
464
471
--buildtype=debug \
472
+ --prefix=${INSTALL_DIR} \
465
473
-Dcassert=true \
466
474
${LINUX_MESON_FEATURES} \
467
475
-DPG_TEST_EXTRA="$PG_TEST_EXTRA" \
@@ -475,6 +483,7 @@ task:
475
483
export CC='ccache gcc -m32'
476
484
meson setup \
477
485
--buildtype=debug \
486
+ --prefix=${INSTALL_DIR}-32 \
478
487
-Dcassert=true \
479
488
${LINUX_MESON_FEATURES} \
480
489
-Dllvm=disabled \
@@ -486,6 +495,7 @@ task:
486
495
487
496
build_script : su postgres -c 'ninja -C build -j${BUILD_JOBS}'
488
497
build_32_script : su postgres -c 'ninja -C build-32 -j${BUILD_JOBS}'
498
+ install_script : su postgres -c 'ninja -C build install'
489
499
490
500
upload_caches : ccache
491
501
@@ -497,6 +507,8 @@ task:
497
507
# so that we don't upload 64bit logs if 32bit fails
498
508
rm -rf build/
499
509
510
+ install_32_script : su postgres -c 'ninja -C build-32 install'
511
+
500
512
# There's currently no coverage of icu with LANG=C in the buildfarm. We
501
513
# can easily provide some here by running one of the sets of tests that
502
514
# way. Newer versions of python insist on changing the LC_CTYPE away
@@ -521,6 +533,7 @@ task:
521
533
TEST_JOBS : 8 # experimentally derived to be a decent choice
522
534
523
535
CCACHE_DIR : /tmp/ccache_dir
536
+ INSTALL_DIR : /tmp/meson-install
524
537
DEBUGINFOD_URLS : ${DEBUGINFO}
525
538
526
539
TCL_DIR : /usr/lib64/
@@ -572,12 +585,14 @@ task:
572
585
su postgres <<-EOF
573
586
meson setup \
574
587
--buildtype debug \
588
+ --prefix=${INSTALL_DIR} \
575
589
-Dcassert=true -Dssl=openssl -Duuid=e2fs ${LLVM} \
576
590
-DPG_TEST_EXTRA="$PG_TEST_EXTRA" \
577
591
build
578
592
EOF
579
593
580
594
build_script : su postgres -c 'ninja -C build -j${BUILD_JOBS}'
595
+ install_script : su postgres -c 'ninja -C build install'
581
596
upload_caches : ccache
582
597
583
598
test_world_script : |
@@ -603,6 +618,7 @@ task:
603
618
604
619
CIRRUS_WORKING_DIR : ${HOME}/pgsql/
605
620
CCACHE_DIR : ${HOME}/ccache
621
+ INSTALL_DIR : /tmp/meson-install
606
622
HOMEBREW_CACHE : ${HOME}/homebrew-cache
607
623
PERL5LIB : ${HOME}/perl5/lib/perl5
608
624
@@ -675,6 +691,8 @@ task:
675
691
676
692
meson setup \
677
693
--buildtype=debug \
694
+ --prefix=${INSTALL_DIR} \
695
+ -Dpkg_config_path=$PKG_CONFIG_PATH \
678
696
-Dextra_include_dirs=${brewpath}/include \
679
697
-Dextra_lib_dirs=${brewpath}/lib \
680
698
-Dcassert=true \
@@ -684,6 +702,7 @@ task:
684
702
build
685
703
686
704
build_script : ninja -C build -j${BUILD_JOBS}
705
+ install_script : ninja -C build install
687
706
upload_caches : ccache
688
707
689
708
test_world_script : |
0 commit comments