Limnoria/.travis.yml
Valentin Lorentz ad6671966c Scheduler: Use mocking to make tests faster.
40s -> less than 10s.
Also some timeout tweaks that might fix GH-1385.
2019-11-11 15:06:06 +01:00

67 lines
1.7 KiB
YAML

language: python
sudo: true
install:
- if [ "$WITH_OPT_DEPS" = "true" ] ; then pip install -vr requirements.txt; fi
- if [[ "$TRAVIS_PYTHON_VERSION" =~ ^3\.[4-9] ]] ; then pip install -v git+https://github.com/ProgVal/irctest.git; fi
- echo "y" | pip uninstall limnoria || true
# command to run tests, e.g. python setup.py test
script:
- echo $TRAVIS_PYTHON_VERSION
- python setup.py install
- supybot-test test -v --plugins-dir=./plugins/ --no-network --disable-multiprocessing
- if [[ "$TRAVIS_PYTHON_VERSION" =~ ^3\.[4-9] ]] ; then python -m irctest irctest.controllers.limnoria; fi
notifications:
email: false
matrix:
include:
- python: "2.6"
env: WITH_OPT_DEPS=false
dist: trusty
- python: "2.7"
env: WITH_OPT_DEPS=false
dist: trusty
- python: "2.7"
env: WITH_OPT_DEPS=true
dist: trusty
- python: "3.2"
env: WITH_OPT_DEPS=false
dist: trusty
- python: "3.2"
env: WITH_OPT_DEPS=true
dist: trusty
- python: "3.3"
env: WITH_OPT_DEPS=true
dist: trusty
- python: "3.4"
env: WITH_OPT_DEPS=true
dist: trusty
- python: "3.5"
env: WITH_OPT_DEPS=true
dist: trusty
- python: "3.6"
env: WITH_OPT_DEPS=true
dist: trusty
- python: "3.7"
env: WITH_OPT_DEPS=false
dist: xenial
- python: "3.7"
env: WITH_OPT_DEPS=true
dist: xenial
- python: "3.8-dev"
env: WITH_OPT_DEPS=true
dist: xenial
- python: "nightly"
env: WITH_OPT_DEPS=true
dist: xenial
- python: "pypy"
env: WITH_OPT_DEPS=true
dist: trusty
- python: "pypy3.3-5.2-alpha1"
env: WITH_OPT_DEPS=true
dist: trusty
- python: "pypy3"
env: WITH_OPT_DEPS=true
dist: xenial