Merge pull request #765 from Mkaysi/runonce

Break .travis.yml to two files
This commit is contained in:
Valentin Lorentz 2014-07-04 23:24:23 +02:00
commit d9a581efa2
3 changed files with 31 additions and 2 deletions

28
.travis.runonce.bash Executable file
View File

@ -0,0 +1,28 @@
#!/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
msgcheck locales/*.po
msgcheck 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 ..
# 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

View File

@ -15,8 +15,7 @@ script:
- python setup.py install
- supybot-test test --plugins-dir=./build/lib*/supybot/plugins/ --no-network --disable-multiprocessing --exclude=./build/lib*/supybot/plugins/Scheduler --exclude=./build/lib*/supybot/plugins/Filter
after_success:
- sandbox/check_trans.py --core
- sandbox/check_trans.py plugins/
- if [ "$TRAVIS_PYTHON_VERSION" = "3.4" ]; then bash -x .travis.runonce.bash;fi
notifications:
on_success: never
on_failure: never

View File

@ -5,3 +5,5 @@ python-gnupg
feedparser
sqlalchemy
SocksiPy-branch
msgcheck
sphinx