mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-15 23:19:22 +01:00
ef77116d68
* msgcheck now doesn't cause false-alarms with Limnoria specific things. * remove the broken if which never gets executed by Travis * These commits have already been build invidually so [SKIP CI]
30 lines
782 B
Bash
Executable File
30 lines
782 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# This script does the things that we want Travis to do only once, not in
|
|
# every possible build.
|
|
|
|
# Set environment
|
|
# Which branch are we on?
|
|
branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')
|
|
|
|
# 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
|
|
|
|
# Check translations
|
|
sandbox/check_trans.py plugins/
|
|
sandbox/check_trans.py --core
|
|
msgcheck -flwW locales/*.po
|
|
msgcheck -flwW plugins/*/*/*.po
|
|
|
|
# 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 ..
|
|
|
|
# Notify read the docs
|
|
curl -X POST http://readthedocs.org/build/limnoria
|