Fix .travis.yml syntax.

This commit is contained in:
Alexey Kopytov
2017-04-09 08:04:20 +03:00
parent 5a012f528d
commit 97f41009fb

View File

@ -104,8 +104,7 @@ addons:
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')
- 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