You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-6071 drone refactor (#3641)
* chore(ci): MCOL-6071 less sccache granularity * chore(ci): MCOL-6071 clean old versions of .deb/.rpm files in s3 when publishing * chore(ci): MCOL-6071 fix unittests execution * install sccache after deps, to have curl * chore(ci) MCOL-6071 review fixes --------- Co-authored-by: Leonid Fedorov <leonid.fedorov@mariadb.com>
This commit is contained in:
@ -79,41 +79,30 @@ fi
|
||||
select_pkg_format ${OS}
|
||||
|
||||
if [[ "$PKG_FORMAT" == "rpm" ]]; then
|
||||
CTEST_BIN_NAME=:"ctest3"
|
||||
CTEST_BIN_NAME="ctest3"
|
||||
else
|
||||
CTEST_BIN_NAME="ctest"
|
||||
fi
|
||||
|
||||
install_sccache() {
|
||||
if [[ "$SCCACHE" == false ]]; then
|
||||
return
|
||||
return
|
||||
fi
|
||||
|
||||
if [[ "$(arch)" == "x86_64" ]]; then
|
||||
sccache_arch="x86_64"
|
||||
sccache_arch="x86_64"
|
||||
else
|
||||
sccache_arch="aarch64"
|
||||
sccache_arch="aarch64"
|
||||
fi
|
||||
|
||||
message "getting sccache..."
|
||||
|
||||
if command -v apt-get &>/dev/null; then
|
||||
apt-get clean
|
||||
apt-get update -y
|
||||
apt-get install -y curl
|
||||
elif command -v yum &>/dev/null; then
|
||||
yum install -y curl
|
||||
fi || true
|
||||
|
||||
curl -L -o sccache.tar.gz \
|
||||
"https://github.com/mozilla/sccache/releases/download/v0.10.0/sccache-v0.10.0-${sccache_arch}-unknown-linux-musl.tar.gz"
|
||||
"https://github.com/mozilla/sccache/releases/download/v0.10.0/sccache-v0.10.0-${sccache_arch}-unknown-linux-musl.tar.gz"
|
||||
|
||||
tar xzf sccache.tar.gz
|
||||
install sccache*/sccache /usr/local/bin/ && message "sccache installed"
|
||||
}
|
||||
|
||||
install_sccache
|
||||
|
||||
install_deps() {
|
||||
if [[ $INSTALL_DEPS = false ]]; then
|
||||
return
|
||||
@ -161,6 +150,7 @@ install_deps() {
|
||||
}
|
||||
|
||||
install_deps
|
||||
install_sccache
|
||||
|
||||
cd $COLUMSNTORE_SOURCE_PATH
|
||||
COLUMNSTORE_BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
||||
@ -776,15 +766,16 @@ construct_cmake_flags
|
||||
init_submodules
|
||||
|
||||
if [[ $BUILD_PACKAGES = true ]]; then
|
||||
|
||||
modify_packaging
|
||||
build_package
|
||||
message_splitted "PACKAGES BUILD FINISHED"
|
||||
run_unit_tests
|
||||
|
||||
( build_package && run_unit_tests )
|
||||
exit_code=$?
|
||||
|
||||
if [[ $SCCACHE = true ]]; then
|
||||
sccache --show-stats
|
||||
sccache --show-stats
|
||||
fi
|
||||
exit 0
|
||||
|
||||
exit $exit_code
|
||||
fi
|
||||
|
||||
stop_service
|
||||
|
Reference in New Issue
Block a user