Skip to content

Commit

Permalink
Build diskquota for rocky9. (#386)
Browse files Browse the repository at this point in the history
- skip add last version to the current build.
- skip upgrade test.
  • Loading branch information
zhrt123 authored Oct 19, 2023
1 parent fba3d06 commit 240ad95
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
20 changes: 14 additions & 6 deletions concourse/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,20 @@ function pkg() {
export CXX="$(which g++)"

pushd /home/gpadmin/bin_diskquota
local last_release_path
last_release_path=$(readlink -eq /home/gpadmin/last_released_diskquota_bin/diskquota-*.tar.gz)
cmake /home/gpadmin/diskquota_src \
-DDISKQUOTA_LAST_RELEASE_PATH="${last_release_path}" \
-DCMAKE_BUILD_TYPE="${BUILD_TYPE}"
cmake --build . --target create_artifact
if [[ $OS_NAME == "rhel9" ]]
then
cmake /home/gpadmin/diskquota_src \
-DCMAKE_BUILD_TYPE="${BUILD_TYPE}" \
-DDISKQUOTA_DDL_CHANGE_CHECK=off
cmake --build . --target create_artifact
else
local last_release_path
last_release_path=$(readlink -eq /home/gpadmin/last_released_diskquota_bin/diskquota-*.tar.gz)
cmake /home/gpadmin/diskquota_src \
-DDISKQUOTA_LAST_RELEASE_PATH="${last_release_path}" \
-DCMAKE_BUILD_TYPE="${BUILD_TYPE}"
cmake --build . --target create_artifact
fi
popd
}

Expand Down
6 changes: 6 additions & 0 deletions concourse/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,17 @@ function _main() {
# Run test again with standby master
activate_standby
time cmake --build . --target installcheck
if [[ $OS_NAME != "rhel9" ]]
then
# Run upgrade test (with standby master)
time cmake --build . --target upgradecheck
fi
popd

if [[ $OS_NAME != "rhel9" ]]
then
time /home/gpadmin/diskquota_src/upgrade_test/alter_test.sh
fi
}

_main

0 comments on commit 240ad95

Please sign in to comment.