You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
chore(ci) refactor reports from tests stage, add it to upgrade
This commit is contained in:
committed by
Leonid Fedorov
parent
79ad7fd01f
commit
2ae171f96c
@ -1,5 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source ../build/utils.sh
|
||||
|
||||
set -xeuo pipefail
|
||||
|
||||
VERSION="$1"
|
||||
@ -8,6 +10,9 @@ ARCH="$3"
|
||||
LINK="$4"
|
||||
UPGRADE_TOKEN="$5"
|
||||
|
||||
DEBIAN_FRONTEND=noninteractive
|
||||
UCF_FORCE_CONFNEW=1
|
||||
|
||||
apt install --yes rsyslog
|
||||
sed -i "s/exit 101/exit 0/g" /usr/sbin/policy-rc.d
|
||||
bash -c "apt update --yes && apt install -y procps wget curl"
|
||||
@ -18,6 +23,9 @@ apt update --yes
|
||||
apt install --yes mariadb-server mariadb-client mariadb-plugin-columnstore
|
||||
systemctl start mariadb
|
||||
systemctl start mariadb-columnstore
|
||||
|
||||
INITIAL_VERSION=$(mariadb -e "select @@version;")
|
||||
|
||||
bash -c "./upgrade_data.sh"
|
||||
bash -c "./upgrade_verify.sh"
|
||||
|
||||
@ -28,5 +36,26 @@ EOF
|
||||
|
||||
bash -c "./setup-repo.sh"
|
||||
|
||||
apt upgrade --yes
|
||||
bash -c "./upgrade_verify.sh"
|
||||
|
||||
# Configuration file '/etc/columnstore/Columnstore.xml'
|
||||
# ==> Modified (by you or by a script) since installation.
|
||||
# ==> Package distributor has shipped an updated version.
|
||||
# What would you like to do about it ? Your options are:
|
||||
# Y or I : install the package maintainer's version
|
||||
# N or O : keep your currently-installed version
|
||||
# D : show the differences between the versions
|
||||
# Z : start a shell to examine the situation
|
||||
# The default action is to keep your current version.
|
||||
|
||||
# rm to escape halt on interactive question
|
||||
apt-get --yes --with-new-pkgs -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade
|
||||
|
||||
UPGRADED_VERSION=$(mariadb -e "select @@version;")
|
||||
|
||||
if [[ "$INITIAL_VERSION" == "$UPGRADED_VERSION" ]]; then
|
||||
error "The upgrade didn't happen!"
|
||||
exit 1
|
||||
else
|
||||
message_splitted "The upgrade from "$INITIAL_VERSION" to "$UPGRADED_VERSION" succeded!"
|
||||
bash -c "./upgrade_verify.sh"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user