Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: ignore tests in single feature build #12464

Merged
merged 1 commit into from
Aug 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions ci/cloudbuild/builds/cmake-single-feature.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,20 @@ check_pkgconfig_absolute() {

for feature in __ga_libraries__ __experimental_libraries__; do
io::run cmake -S . -B cmake-out/test-only-"${feature}" \
-DGOOGLE_CLOUD_CPP_ENABLE="${feature}"
-DGOOGLE_CLOUD_CPP_ENABLE="${feature}" \
-DBUILD_TESTING=OFF
done

for feature in "${features[@]}"; do
io::run cmake -S . -B cmake-out/test-only-"${feature}" \
-DGOOGLE_CLOUD_CPP_ENABLE="${feature}"
-DGOOGLE_CLOUD_CPP_ENABLE="${feature}" \
-DBUILD_TESTING=OFF
io::run check_pkgconfig_relative cmake-out/test-only-"${feature}"

io::run cmake -S . -B cmake-out/test-only-"${feature}"-absolute-cmake-install \
-DGOOGLE_CLOUD_CPP_ENABLE="${feature}" \
-DCMAKE_INSTALL_INCLUDEDIR=/test-only/include \
-DCMAKE_INSTALL_LIBDIR=/test-only/lib
-DCMAKE_INSTALL_LIBDIR=/test-only/lib \
-DBUILD_TESTING=OFF
io::run check_pkgconfig_absolute cmake-out/test-only-"${feature}"-absolute-cmake-install
done