testing dbdeployer version

This commit is contained in:
Shlomi Noach 2020-02-05 10:49:52 +02:00
parent b72ebfbbd2
commit 4e5a708f30

View File

@ -4,6 +4,7 @@ set -e
whoami
fetch_ci_env() {
# Clone gh-ost-ci-env
# Only clone if not already running locally at latest commit
remote_commit=$(git ls-remote https://github.com/github/gh-ost-ci-env.git tar-xz-binaries | cut -f1)
@ -22,6 +23,11 @@ if [ "$remote_commit" != "$local_commit" ] ; then
git checkout tar-xz-binaries
)
fi
}
test_dbdeployer() {
gh-ost-ci-env/bin/linux/dbdeployer --version
}
test_mysql_version() {
local mysql_version
@ -64,6 +70,10 @@ test_mysql_version() {
find sandboxes -name "stop_all" | bash
}
main() {
fetch_ci_env
test_dbdeployer
echo "Building..."
. script/build
# Test all versions:
@ -73,3 +83,6 @@ done
find gh-ost-ci-env/mysql-tarballs/ -name "*.tar.xz" | while read f ; do basename $f ".tar.xz" ; done | sort -r | while read mysql_version ; do
test_mysql_version "$mysql_version"
done
}
main()