2017-04-27 11:47:56 -07:00
|
|
|
#!/bin/bash -e
|
2016-08-22 16:57:53 -05:00
|
|
|
#
|
|
|
|
# Description:
|
|
|
|
# Builds Spack documentation and checks for
|
|
|
|
# possible syntax errors. Treats warnings as
|
|
|
|
# fatal errors.
|
|
|
|
#
|
|
|
|
# Usage:
|
|
|
|
# run-doc-tests
|
|
|
|
#
|
2017-04-27 11:47:56 -07:00
|
|
|
. "$(dirname $0)/setup.sh"
|
|
|
|
check_dependencies sphinx-apidoc sphinx-build dot git hg svn
|
2016-08-29 11:10:06 -05:00
|
|
|
|
2016-08-22 18:40:53 -05:00
|
|
|
# Move to documentation directory
|
|
|
|
# Allows script to be run from anywhere
|
2017-04-27 11:47:56 -07:00
|
|
|
cd "$SPACK_ROOT/lib/spack/docs"
|
2016-08-22 18:40:53 -05:00
|
|
|
|
2016-08-24 16:56:59 -05:00
|
|
|
# Treat warnings as fatal errors
|
2016-10-02 20:51:09 -05:00
|
|
|
make clean --silent
|
2017-05-17 11:36:02 -05:00
|
|
|
make SPHINXOPTS=-W
|