[docs] Another try, not sure why the bot isn't building

This commit is contained in:
Behdad Esfahbod 2015-12-30 15:56:56 +01:00
parent f3a051149b
commit 33b2d981a0
1 changed files with 4 additions and 9 deletions

View File

@ -1,20 +1,15 @@
set -o errexit -o nounset
if [ "$TRAVIS_OS_NAME" != "linux" -o "$CC" != "gcc" -o "$TRAVIS_SECURE_ENV_VARS" != "true" ]; then
exit
fi
if test "$TRAVIS_OS_NAME" != "linux" -o "$CC" != "gcc" -o "$TRAVIS_SECURE_ENV_VARS" != "true"; then exit; fi
BRANCH="$(TRAVIS_BRANCH)"
if test "x$BRANCH" != xmaster; then exit; fi
TAG="$(git describe --exact-match --match "[0-9]*" HEAD 2>/dev/null)"
if [ "x$TAG" == x ]; then
REVISION=$(git rev-parse --short HEAD)
else
REVISION=$TAG
fi
DOCSDIR=build-docs
REVISION=$(git rev-parse --short HEAD)
rm -rf $DOCSDIR || exit
mkdir $DOCSDIR