Browse Source

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

reviewable/pr3614/r6
initramfs 9 years ago
parent
commit
80581aa966
No known key found for this signature in database
GPG Key ID: 78B8BDF87E9EF0AF
  1. 2
      .travis.yml
  2. 3
      .travis/deploy-docs.sh

2
.travis.yml

@ -28,4 +28,4 @@ deploy: @@ -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

3
.travis/deploy-docs.sh

@ -18,11 +18,12 @@ @@ -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

Loading…
Cancel
Save