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/*
|
16
.travis.yml
16
.travis.yml
|
@ -1,9 +1,17 @@
|
|||
sudo: false
|
||||
language: python
|
||||
python:
|
||||
- "2.7"
|
||||
- "3.5"
|
||||
env:
|
||||
global:
|
||||
- PIP_RETRIES=10
|
||||
- PIP_TIMEOUT=30
|
||||
matrix:
|
||||
- TOXENV=py27
|
||||
- TOXENV=py35
|
||||
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
|
||||
- travis_retry pip install tox codecov
|
||||
script:
|
||||
- tox
|
||||
after_success:
|
||||
- codecov
|
||||
|
|
|
@ -7,6 +7,9 @@ daphne
|
|||
.. image:: https://img.shields.io/pypi/v/daphne.svg
|
||||
: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
|
||||
`ASGI <http://channels.readthedocs.org/en/latest/asgi.html>`_, and developed
|
||||
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