mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-18 16:12:42 +01:00
Merge pull request #765 from Mkaysi/runonce
Break .travis.yml to two files
This commit is contained in:
commit
d9a581efa2
28
.travis.runonce.bash
Executable file
28
.travis.runonce.bash
Executable 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
|
@ -15,8 +15,7 @@ script:
|
|||||||
- python setup.py install
|
- 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
|
- 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:
|
after_success:
|
||||||
- sandbox/check_trans.py --core
|
- if [ "$TRAVIS_PYTHON_VERSION" = "3.4" ]; then bash -x .travis.runonce.bash;fi
|
||||||
- sandbox/check_trans.py plugins/
|
|
||||||
notifications:
|
notifications:
|
||||||
on_success: never
|
on_success: never
|
||||||
on_failure: never
|
on_failure: never
|
||||||
|
@ -5,3 +5,5 @@ python-gnupg
|
|||||||
feedparser
|
feedparser
|
||||||
sqlalchemy
|
sqlalchemy
|
||||||
SocksiPy-branch
|
SocksiPy-branch
|
||||||
|
msgcheck
|
||||||
|
sphinx
|
||||||
|
Loading…
Reference in New Issue
Block a user