2014-07-04 23:01:14 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
# This script does the things that we want Travis to do only once, not in
|
|
|
|
# every possible build.
|
|
|
|
|
2014-07-15 19:51:19 +02:00
|
|
|
# Care about exit status
|
|
|
|
set -x
|
|
|
|
set -e
|
|
|
|
|
2014-07-04 23:01:14 +02:00
|
|
|
# Set environment
|
|
|
|
# Which branch are we on?
|
|
|
|
branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')
|
|
|
|
|
2014-07-05 09:33:45 +02:00
|
|
|
# Install requirements required for only this file.
|
|
|
|
if [[ $TRAVIS == "true" ]]; then
|
|
|
|
sudo pip install sphinx msgcheck --upgrade
|
|
|
|
else
|
|
|
|
pip install sphinx msgcheck --upgrade --user
|
|
|
|
fi
|
|
|
|
|
2014-07-04 23:01:14 +02:00
|
|
|
# Check translations
|
|
|
|
sandbox/check_trans.py plugins/
|
|
|
|
sandbox/check_trans.py --core
|
2014-07-15 19:51:19 +02:00
|
|
|
msgcheck -flwW locales/*.po || true
|
|
|
|
msgcheck -flwW plugins/*/*/*.po || true
|
2014-07-04 23:01:14 +02:00
|
|
|
|
2014-07-04 23:03:41 +02:00
|
|
|
# Check documentation
|
|
|
|
cd docs
|
|
|
|
# Add -W to spinx-build when the documentation doesn't error!
|
|
|
|
sphinx-build -n -b html -d _build/doctrees . _build/html
|
|
|
|
cd ..
|