1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

chore(build): add an error message on failure to deploy documentation

This commit is contained in:
initramfs 2016-08-11 15:39:14 +08:00
parent e124bd85b6
commit 80581aa966
No known key found for this signature in database
GPG Key ID: 78B8BDF87E9EF0AF
2 changed files with 3 additions and 2 deletions

View File

@ -28,4 +28,4 @@ deploy:
skip_cleanup: true
after_success:
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && bash ./.travis/deploy-docs.sh
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && test $JOB == "build-docs" && bash ./.travis/deploy-docs.sh

View File

@ -18,11 +18,12 @@
# Fail out on error
set -eu -o pipefail
DOCS_FOLDER="./doc/html"
DOCS_FOLDER="./doc/html/"
# Ensure docs exists
if [ ! -d "$DOCS_FOLDER" ]
then
echo "Docs deploy failing, no $DOCS_DIR present."
exit 1
fi