mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +01:00
Break .travis.yml to two files
* .travis.yml = the primary Travis config file. * .travis.runonce.bash = the script which we want to run only once per build.
This commit is contained in:
parent
6c3d2dfcd2
commit
cdd564f115
20
.travis.runonce.bash
Executable file
20
.travis.runonce.bash
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#!/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
|
||||||
|
|
||||||
|
# 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
|
42
.travis.yml
42
.travis.yml
@ -1,22 +1,20 @@
|
|||||||
language: python
|
#!/usr/bin/env bash
|
||||||
python:
|
# This script does the things that we want Travis to do only once, not in
|
||||||
- "2.6"
|
# every possible build.
|
||||||
- "2.7"
|
|
||||||
- "3.2"
|
# Set environment
|
||||||
- "3.3"
|
# Which branch are we on?
|
||||||
- "3.4"
|
branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')
|
||||||
- "pypy"
|
|
||||||
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
|
# Check translations
|
||||||
install:
|
sandbox/check_trans.py plugins/
|
||||||
- pip install -vr requirements.txt
|
sandbox/check_trans.py --core
|
||||||
# command to run tests, e.g. python setup.py test
|
|
||||||
script:
|
# Do these things only on testing or master.
|
||||||
- echo $TRAVIS_PYTHON_VERSION
|
if [[ "$branch" = "master" || "$branch" = "testing" ]]; then
|
||||||
- python setup.py install
|
# Notify read the docs
|
||||||
- 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
|
curl -X POST http://readthedocs.org/build/limnoria
|
||||||
after_success:
|
# Add other things which we want to do here, before the fi.
|
||||||
- sandbox/check_trans.py --core
|
else
|
||||||
- sandbox/check_trans.py plugins/
|
echo "$branch is not master nor testing, doing nothing."
|
||||||
notifications:
|
fi
|
||||||
on_success: never
|
|
||||||
on_failure: never
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user