testing dbdeployer version
This commit is contained in:
parent
b72ebfbbd2
commit
4e5a708f30
@ -4,6 +4,7 @@ set -e
|
|||||||
|
|
||||||
whoami
|
whoami
|
||||||
|
|
||||||
|
fetch_ci_env() {
|
||||||
# Clone gh-ost-ci-env
|
# Clone gh-ost-ci-env
|
||||||
# Only clone if not already running locally at latest commit
|
# 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)
|
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
|
git checkout tar-xz-binaries
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
test_dbdeployer() {
|
||||||
|
gh-ost-ci-env/bin/linux/dbdeployer --version
|
||||||
|
}
|
||||||
|
|
||||||
test_mysql_version() {
|
test_mysql_version() {
|
||||||
local mysql_version
|
local mysql_version
|
||||||
@ -64,6 +70,10 @@ test_mysql_version() {
|
|||||||
find sandboxes -name "stop_all" | bash
|
find sandboxes -name "stop_all" | bash
|
||||||
}
|
}
|
||||||
|
|
||||||
|
main() {
|
||||||
|
fetch_ci_env
|
||||||
|
test_dbdeployer
|
||||||
|
|
||||||
echo "Building..."
|
echo "Building..."
|
||||||
. script/build
|
. script/build
|
||||||
# Test all versions:
|
# 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
|
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"
|
test_mysql_version "$mysql_version"
|
||||||
done
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
main()
|
||||||
|
Loading…
Reference in New Issue
Block a user