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.
|
|
|
|
|
|
|
|
|
|
# Set environment
|
|
|
|
|
# Which branch are we on?
|
|
|
|
|
branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')
|
|
|
|
|
|
|
|
|
|
# Check translations
|
|
|
|
|
sandbox/check_trans.py plugins/
|
|
|
|
|
sandbox/check_trans.py --core
|
2014-07-04 23:08:12 +02:00
|
|
|
|
msgcheck locales/*.po
|
|
|
|
|
msgcheck plugins/*/*/*.po
|
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 ..
|
|
|
|
|
|
2014-07-04 23:01:14 +02:00
|
|
|
|
# Do these things only on testing or master.
|
|
|
|
|
if [[ "$branch" = "master" || "$branch" = "testing" ]]; then
|
|
|
|
|
# Notify read the docs
|
|
|
|
|
curl -X POST http://readthedocs.org/build/limnoria
|
|
|
|
|
# Add other things which we want to do here, before the fi.
|
|
|
|
|
else
|
|
|
|
|
echo "$branch is not master nor testing, doing nothing."
|
|
|
|
|
fi
|