diff options
author | Sebastian Pipping <sebastian@pipping.org> | 2019-01-01 21:34:55 +0100 |
---|---|---|
committer | Sebastian Pipping <sebastian@pipping.org> | 2019-12-09 23:46:10 +0100 |
commit | 6f5e1af31055d5c76ca0d4e009a88c3e81df5086 (patch) | |
tree | 4ecbec74b3a938649882837b26c25ab103ecd116 | |
parent | 3e8cca99565f150969fb4a9a75d21befeb5c1b91 (diff) | |
download | bottle-6f5e1af31055d5c76ca0d4e009a88c3e81df5086.tar.gz |
travis: Resolve some travis_setup.sh code duplication
-rwxr-xr-x | test/travis_setup.sh | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/test/travis_setup.sh b/test/travis_setup.sh index 3ba2e1a..38986e1 100755 --- a/test/travis_setup.sh +++ b/test/travis_setup.sh @@ -13,15 +13,19 @@ pip install -U coverage 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 +case ${TRAVIS_PYTHON_VERSION} in +2.7|3.6) sudo apt-get update -y sudo apt-get install -y libev-dev pip install mako jinja2 waitress "cherrypy<9" cheroot paste tornado twisted diesel meinheld gunicorn eventlet + ;; +esac + +case ${TRAVIS_PYTHON_VERSION} in +2.7) pip install flup fapws3 rocket bjoern gevent -elif [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then - sudo apt-get update -y - sudo apt-get install -y libev-dev - pip install mako jinja2 waitress "cherrypy<9" cheroot paste tornado twisted diesel meinheld gunicorn eventlet + ;; +3.6) pip install uvloop -fi - + ;; +esac |