|
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 |
|
@@ -178,7 +181,7 @@ task:
|
178 | 181 | -Dextra_lib_dirs=/usr/local/lib -Dextra_include_dirs=/usr/local/include/ \
|
179 | 182 | build
|
180 | 183 | EOF
|
181 |
| - build_script: su postgres -c 'ninja -C build -j${BUILD_JOBS}' |
| 184 | + build_script: su postgres -c 'ninja -C build -j${BUILD_JOBS} ${MBUILD_TARGET}' |
182 | 185 | upload_caches: ccache
|
183 | 186 |
|
184 | 187 | test_world_script: |
|
@@ -380,8 +383,8 @@ task:
|
380 | 383 | build-32
|
381 | 384 | EOF
|
382 | 385 |
|
383 |
| - build_script: su postgres -c 'ninja -C build -j${BUILD_JOBS}' |
384 |
| - build_32_script: su postgres -c 'ninja -C build-32 -j${BUILD_JOBS}' |
| 386 | + build_script: su postgres -c 'ninja -C build -j${BUILD_JOBS} ${MBUILD_TARGET}' |
| 387 | + build_32_script: su postgres -c 'ninja -C build-32 -j${BUILD_JOBS} ${MBUILD_TARGET}' |
385 | 388 |
|
386 | 389 | upload_caches: ccache
|
387 | 390 |
|
@@ -502,7 +505,7 @@ task:
|
502 | 505 | -DPG_TEST_EXTRA="$PG_TEST_EXTRA" \
|
503 | 506 | build
|
504 | 507 |
|
505 |
| - build_script: ninja -C build -j${BUILD_JOBS} |
| 508 | + build_script: ninja -C build -j${BUILD_JOBS} ${MBUILD_TARGET} |
506 | 509 | upload_caches: ccache
|
507 | 510 |
|
508 | 511 | test_world_script: |
|
@@ -575,7 +578,7 @@ task:
|
575 | 578 |
|
576 | 579 | build_script: |
|
577 | 580 | vcvarsall x64
|
578 |
| - ninja -C build |
| 581 | + ninja -C build %MBUILD_TARGET% |
579 | 582 |
|
580 | 583 | check_world_script: |
|
581 | 584 | vcvarsall x64
|
@@ -633,7 +636,7 @@ task:
|
633 | 636 | %BASH% -c "meson setup -Ddebug=true -Doptimization=g -Dcassert=true -Dinjection_points=true -Db_pch=true -Dnls=disabled -DTAR=%TAR% build"
|
634 | 637 |
|
635 | 638 | build_script: |
|
636 |
| - %BASH% -c "ninja -C build" |
| 639 | + %BASH% -c "ninja -C build ${MBUILD_TARGET}" |
637 | 640 |
|
638 | 641 | upload_caches: ccache
|
639 | 642 |
|
|
0 commit comments