Skip to content

Commit

Permalink
Hopefully fixing travis-ci problems. Modeled after PR #945
Browse files Browse the repository at this point in the history
  • Loading branch information
defnull committed Mar 25, 2017
1 parent 617d08a commit 82e7980
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 34 deletions.
11 changes: 4 additions & 7 deletions .travis.yml
Expand Up @@ -8,21 +8,18 @@ python:
- "3.3"
- "3.4"
- "3.5"
- "3.6"
- "nightly"
- "pypy"
- "pypy3"

install:
- travis_retry bash test/travis_setup.sh
# Coveralls 4.0 doesn't support Python 3.2
- if [ "$TRAVIS_PYTHON_VERSION" == "3.2" ]; then travis_retry pip install coverage==3.7.1; fi
- if [ "$TRAVIS_PYTHON_VERSION" != "3.2" ]; then travis_retry pip install coverage; fi
- pip install -U coverage coveralls

script:
- python -m coverage run --source=bottle.py test/testall.py fast
- python -m coverage combine
- python -m coverage report 2>&1
- python -m coverage run --source=. test/testall.py fast
- python -m coverage combine
- python -m coverage report 2>&1

notifications:
irc: "irc.freenode.org#bottlepy"
Expand Down
19 changes: 0 additions & 19 deletions test/travis-requirements.txt

This file was deleted.

25 changes: 17 additions & 8 deletions test/travis_setup.sh 100755 → 100644
@@ -1,14 +1,23 @@
#!/bin/bash

set -e
set -x
# This script is run by travis-ci prior to running tests.

sudo apt-get install libev-dev
# Coverage 4.0 doesn't support Python 3.2
if [[ $TRAVIS_PYTHON_VERSION == 3.2 ]]; then
pip install coverage==3.7.1
else
pip install -U coverage
fi

pip install coveralls

# Server back-ends and template engines. Not all back-ends support all python versions and we only want to test for 2.7 and 3.6 to keep things sane
if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then
pip install flup waitress cherrypy paste fapws3 tornado twisted diesel meinheld gunicorn eventlet gevent rocket bjoern
sudo apt-get install libev-dev
pip install mako jinja2 waitress "cherrypy<9" cheroot paste tornado twisted diesel meinheld gunicorn eventlet
pip install flup fapws3 rocket bjoern gevent
elif [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then
sudo apt-get install libev-dev
pip install mako jinja2 waitress "cherrypy<9" cheroot paste tornado twisted diesel meinheld gunicorn eventlet
pip install uvloop
fi

if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then
pip install waitress cherrypy paste tornado twisted diesel meinheld gunicorn eventlet gevent uvloop
fi

0 comments on commit 82e7980

Please sign in to comment.