Upload release builds to 'sysbench' repo, other ones to 'sysbench-prereleases'.

This commit is contained in:
Alexey Kopytov
2017-04-09 07:50:03 +03:00
parent d0bb5e14b4
commit 5a012f528d

View File

@ -102,6 +102,16 @@ addons:
- clang-3.6
before_install:
# Upload builds corresponding to release tags to the 'sysbench'
# repository, push other ones to 'sysbench-prereleases'
- commits=$(git describe --long --always |
sed -n 's/^\([0-9\.]*\)-\([0-9]*\)-\([a-z0-9]*\)/\2/p')
- >
if [ ${commits:-0} = 0 ]; then
PACKAGECLOUD_REPO=sysbench
else
PACKAGECLOUD_REPO=sysbench-prereleases
fi
- >
if [ "x$TARGET" = "xtest" ]; then
case "${TRAVIS_OS_NAME:-linux}" in