fix .travis.yml

This commit is contained in:
Mikaela Suomalainen 2014-07-05 00:19:30 +03:00
parent cc1ccb15a0
commit 2fbb279ac2

View File

@ -1,20 +1,21 @@
#!/usr/bin/env bash language: python
# This script does the things that we want Travis to do only once, not in python:
# every possible build. - "2.6"
- "2.7"
# Set environment - "3.2"
# Which branch are we on? - "3.3"
branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p') - "3.4"
- "pypy"
# Check translations # command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
sandbox/check_trans.py plugins/ install:
sandbox/check_trans.py --core - pip install -vr requirements.txt
# command to run tests, e.g. python setup.py test
# Do these things only on testing or master. script:
if [[ "$branch" = "master" || "$branch" = "testing" ]]; then - echo $TRAVIS_PYTHON_VERSION
# Notify read the docs - python setup.py install
curl -X POST http://readthedocs.org/build/limnoria - 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
# Add other things which we want to do here, before the fi. after_success:
else - if [ "$TRAVIS_PYTHON_VERSION" = "3.4" ]; then bash -x .travis.runonce.bash;fi
echo "$branch is not master nor testing, doing nothing." notifications:
fi on_success: never
on_failure: never