|
17 | 17 | CHECK: check-world PROVE_FLAGS=$PROVE_FLAGS
|
18 | 18 | CHECKFLAGS: -Otarget
|
19 | 19 | PROVE_FLAGS: --timer
|
| 20 | + # Build test dependencies as part of the build step, to see compiler |
| 21 | + # errors/warnings in one place. |
| 22 | + MBUILD_TARGET: all testprep |
20 | 23 | MTEST_ARGS: --print-errorlogs --no-rebuild -C build
|
21 | 24 | PGCTLTIMEOUT: 120 # avoids spurious failures during parallel tests
|
22 | 25 | TEMP_CONFIG: ${CIRRUS_WORKING_DIR}/src/tools/ci/pg_ci_base.conf
|
|
99 | 102 | EOF
|
100 | 103 | build_script: |
|
101 | 104 | su postgres <<-EOF
|
102 |
| - ninja -C build -j${BUILD_JOBS} |
| 105 | + ninja -C build -j${BUILD_JOBS} ${MBUILD_TARGET} |
103 | 106 | EOF
|
104 | 107 | upload_caches: ccache
|
105 | 108 |
|
@@ -176,7 +179,7 @@ task:
|
176 | 179 | -Dextra_lib_dirs=/usr/local/lib -Dextra_include_dirs=/usr/local/include/ \
|
177 | 180 | build
|
178 | 181 | EOF
|
179 |
| - build_script: su postgres -c 'ninja -C build -j${BUILD_JOBS}' |
| 182 | + build_script: su postgres -c 'ninja -C build -j${BUILD_JOBS} ${MBUILD_TARGET}' |
180 | 183 | upload_caches: ccache
|
181 | 184 |
|
182 | 185 | test_world_script: |
|
@@ -378,8 +381,8 @@ task:
|
378 | 381 | build-32
|
379 | 382 | EOF
|
380 | 383 |
|
381 |
| - build_script: su postgres -c 'ninja -C build -j${BUILD_JOBS}' |
382 |
| - build_32_script: su postgres -c 'ninja -C build-32 -j${BUILD_JOBS}' |
| 384 | + build_script: su postgres -c 'ninja -C build -j${BUILD_JOBS} ${MBUILD_TARGET}' |
| 385 | + build_32_script: su postgres -c 'ninja -C build-32 -j${BUILD_JOBS} ${MBUILD_TARGET}' |
383 | 386 |
|
384 | 387 | upload_caches: ccache
|
385 | 388 |
|
@@ -498,7 +501,7 @@ task:
|
498 | 501 | -DPG_TEST_EXTRA="$PG_TEST_EXTRA" \
|
499 | 502 | build
|
500 | 503 |
|
501 |
| - build_script: ninja -C build -j${BUILD_JOBS} |
| 504 | + build_script: ninja -C build -j${BUILD_JOBS} ${MBUILD_TARGET} |
502 | 505 | upload_caches: ccache
|
503 | 506 |
|
504 | 507 | test_world_script: |
|
@@ -571,7 +574,7 @@ task:
|
571 | 574 |
|
572 | 575 | build_script: |
|
573 | 576 | vcvarsall x64
|
574 |
| - ninja -C build |
| 577 | + ninja -C build %MBUILD_TARGET% |
575 | 578 |
|
576 | 579 | check_world_script: |
|
577 | 580 | vcvarsall x64
|
@@ -629,7 +632,7 @@ task:
|
629 | 632 | %BASH% -c "meson setup -Ddebug=true -Doptimization=g -Dcassert=true -Db_pch=true -Dnls=disabled -DTAR=%TAR% build"
|
630 | 633 |
|
631 | 634 | build_script: |
|
632 |
| - %BASH% -c "ninja -C build" |
| 635 | + %BASH% -c "ninja -C build ${MBUILD_TARGET}" |
633 | 636 |
|
634 | 637 | upload_caches: ccache
|
635 | 638 |
|
|
0 commit comments