.travis.runonce.bash: improvising

I hope this also works with Travis, but I have no idea does whereis
usually check $HOME/.local/bin …
This commit is contained in:
Mikaela Suomalainen 2014-07-05 01:00:52 +03:00
parent 1a8f54f337
commit 373471845c

View File

@ -10,16 +10,20 @@ branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')
pip install sphinx --upgrade --user
pip install msgcheck --upgrade --user
# Prepare sphinx & msgcheck to be used (I hope).
sphinxbin=$(whereis -b sphinx-build|cut -f2 -d' ')
msgcheckbin=$(whereis -b sphinx-build|cut -f2 -d' ')
# Check translations
sandbox/check_trans.py plugins/
sandbox/check_trans.py --core
$HOME/.local/bin/msgcheck locales/*.po
msgcheck plugins/*/*/*.po
$msgcheckbin locales/*.po
$msgcheckbin plugins/*/*/*.po
# Check documentation
cd docs
# Add -W to spinx-build when the documentation doesn't error!
$HOME/.local/bin/sphinx-build -n -b html -d _build/doctrees . _build/html
$sphinxbin -n -b html -d _build/doctrees . _build/html
cd ..
# Do these things only on testing or master.