.travis.runonce.bash: use sudo in travis
This commit is contained in:
parent
00b8d9d0b2
commit
aca2040807
@ -7,19 +7,24 @@
|
||||
branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')
|
||||
|
||||
# Install requirements required for only this file.
|
||||
pip install sphinx --upgrade --user
|
||||
pip install msgcheck --upgrade --user
|
||||
if [[ $TRAVIS == "true" ]]; then
|
||||
sudo pip install sphinx --upgrade
|
||||
sudo pip install msgcheck --upgrade
|
||||
else
|
||||
pip install sphinx --upgrade --user
|
||||
pip install sphinx --upgrade --user
|
||||
fi
|
||||
|
||||
# Check translations
|
||||
sandbox/check_trans.py plugins/
|
||||
sandbox/check_trans.py --core
|
||||
$HOME/.local/bin/msgcheck locales/*.po
|
||||
msgcheck locales/*.po
|
||||
msgcheck 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
|
||||
sphinx-build -n -b html -d _build/doctrees . _build/html
|
||||
cd ..
|
||||
|
||||
# Do these things only on testing or master.
|
||||
|
Loading…
Reference in New Issue
Block a user