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:
parent
e124bd85b6
commit
80581aa966
|
@ -28,4 +28,4 @@ deploy:
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
|
|
||||||
after_success:
|
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
|
||||||
|
|
|
@ -18,11 +18,12 @@
|
||||||
# Fail out on error
|
# Fail out on error
|
||||||
set -eu -o pipefail
|
set -eu -o pipefail
|
||||||
|
|
||||||
DOCS_FOLDER="./doc/html"
|
DOCS_FOLDER="./doc/html/"
|
||||||
|
|
||||||
# Ensure docs exists
|
# Ensure docs exists
|
||||||
if [ ! -d "$DOCS_FOLDER" ]
|
if [ ! -d "$DOCS_FOLDER" ]
|
||||||
then
|
then
|
||||||
|
echo "Docs deploy failing, no $DOCS_DIR present."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user