mirror of
https://github.com/django/daphne.git
synced 2025-08-02 09:40:09 +03:00
Merge f66bede4fe
into 8b751ca249
This commit is contained in:
commit
89fc0dcacc
7
.coveragerc
Normal file
7
.coveragerc
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
[paths]
|
||||||
|
source =
|
||||||
|
daphne/
|
||||||
|
|
||||||
|
[report]
|
||||||
|
omit =
|
||||||
|
.tox/*
|
18
.travis.yml
18
.travis.yml
|
@ -1,9 +1,17 @@
|
||||||
sudo: false
|
sudo: false
|
||||||
language: python
|
language: python
|
||||||
python:
|
python:
|
||||||
- "2.7"
|
- "3.5"
|
||||||
- "3.5"
|
env:
|
||||||
|
global:
|
||||||
|
- PIP_RETRIES=10
|
||||||
|
- PIP_TIMEOUT=30
|
||||||
|
matrix:
|
||||||
|
- TOXENV=py27
|
||||||
|
- TOXENV=py35
|
||||||
install:
|
install:
|
||||||
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then pip install unittest2; fi
|
- travis_retry pip install tox codecov
|
||||||
- pip install asgiref twisted autobahn
|
script:
|
||||||
script: if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then python -m unittest2; else python -m unittest; fi
|
- tox
|
||||||
|
after_success:
|
||||||
|
- codecov
|
||||||
|
|
|
@ -3,10 +3,13 @@ daphne
|
||||||
|
|
||||||
.. image:: https://api.travis-ci.org/andrewgodwin/daphne.svg
|
.. image:: https://api.travis-ci.org/andrewgodwin/daphne.svg
|
||||||
:target: https://travis-ci.org/andrewgodwin/daphne
|
:target: https://travis-ci.org/andrewgodwin/daphne
|
||||||
|
|
||||||
.. image:: https://img.shields.io/pypi/v/daphne.svg
|
.. image:: https://img.shields.io/pypi/v/daphne.svg
|
||||||
:target: https://pypi.python.org/pypi/daphne
|
:target: https://pypi.python.org/pypi/daphne
|
||||||
|
|
||||||
|
.. image:: https://codecov.io/github/andrewgodwin/daphne/coverage.svg?branch=master
|
||||||
|
:target: https://codecov.io/github/andrewgodwin/daphne?branch=master
|
||||||
|
|
||||||
Daphne is a HTTP, HTTP2 and WebSocket protocol server for
|
Daphne is a HTTP, HTTP2 and WebSocket protocol server for
|
||||||
`ASGI <http://channels.readthedocs.org/en/latest/asgi.html>`_, and developed
|
`ASGI <http://channels.readthedocs.org/en/latest/asgi.html>`_, and developed
|
||||||
to power Django Channels.
|
to power Django Channels.
|
||||||
|
|
25
tox.ini
Normal file
25
tox.ini
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
[tox]
|
||||||
|
envlist = py{27,35}
|
||||||
|
|
||||||
|
[base]
|
||||||
|
commands =
|
||||||
|
coverage report -m
|
||||||
|
|
||||||
|
[testenv]
|
||||||
|
usedevelop = true
|
||||||
|
commands =
|
||||||
|
coverage run -m unittest
|
||||||
|
{[base]commands}
|
||||||
|
deps =
|
||||||
|
asgiref
|
||||||
|
twisted
|
||||||
|
autobahn
|
||||||
|
coverage
|
||||||
|
|
||||||
|
[testenv:py27]
|
||||||
|
commands =
|
||||||
|
coverage run -m unittest2
|
||||||
|
{[base]commands}
|
||||||
|
deps =
|
||||||
|
unittest2
|
||||||
|
{[testenv]deps}
|
Loading…
Reference in New Issue
Block a user