From f85be12408e4b8167c9a7a8b1ebf86529710a451 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Fri, 5 Feb 2016 17:25:37 -0800 Subject: [PATCH] Add Travis CI config --- .travis.yml | 9 +++++++++ README.rst | 3 +++ 2 files changed, 12 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..6f34248 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +sudo: false +language: python +python: + - "2.7" + - "3.5" +install: + - if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then pip install unittest2; fi + - pip install asgiref twisted autobahn +script: if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then python -m unittest2; else python -m unittest; fi diff --git a/README.rst b/README.rst index 640063f..f3c9563 100644 --- a/README.rst +++ b/README.rst @@ -1,6 +1,9 @@ daphne ====== +.. image:: https://api.travis-ci.org/andrewgodwin/daphne.svg + :target: https://travis-ci.org/andrewgodwin/daphne + Daphne is a HTTP, HTTP2 and WebSocket protocol server for `ASGI `_, and developed to power Django Channels.