Skip to content

Commit

Permalink
code coverage and changes to version support (#101)
Browse files Browse the repository at this point in the history
* adding coverage and updating python versions supported
  • Loading branch information
noisyboiler authored Jul 23, 2020
1 parent 7c7ef24 commit 89c6bb9
Show file tree
Hide file tree
Showing 11 changed files with 567 additions and 403 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ target/
node.pid
node.key

#Mac
.DS_Store

#wampy
config.yaml
key.*
Expand Down
19 changes: 8 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,20 @@ language: python
sudo: false

python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.7"
- "3.7.3"
- "3.8"

install:
- pip install --upgrade setuptools coverage
- pip install --editable .[dev]
- pip install pytest-cov
- pip install coveralls
- sudo apt-get install libsnappy-dev # this is just for twisted's numerous dependencies wh
- pip3 install --upgrade setuptools coverage
- pip3 install --editable .[dev]
- pip3 install pytest-cov
- pip3 install coveralls

script:
- pytest -s -vv --cov=./wampy

env:
- WAMPY_ASYNC_NAME=eventlet
- WAMPY_ASYNC_NAME=gevent

after_success:
- coveralls
18 changes: 9 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
dev-install:
pip install --editable .[dev]
install:
pip3 install --editable .[dev]

doc-install:
pip install --editable .[doc]
docs:
pip3 install --editable .[doc]

tests:
pip install --editable .[dev]
pip install coverage
pip install pytest-cov
pip3 install --editable .[dev]
pip3 install coverage
pip3 install pytest-cov
py.test ./test -vs

unit-tests:
Expand All @@ -16,8 +16,8 @@ unit-tests:
lint:
flake8 .

coverage-report:
pytest -s -vv --cov=./wampy
coverage:
coverage run --source ./wampy -m py.test ./test/ && coverage repor

crossbar:
crossbar start --config ./wampy/testing/configs/crossbar.json
Loading

0 comments on commit 89c6bb9

Please sign in to comment.