Browse Source

Remove zmq as requirement, Add coverage report

HelloZeroNet 8 years ago
parent
commit
5f71e79a2b
3 changed files with 9 additions and 2 deletions
  1. 3 1
      .travis.yml
  2. 0 1
      requirements.txt
  3. 6 0
      src/Test/coverage.ini

+ 3 - 1
.travis.yml

@@ -3,8 +3,10 @@ python:
   - "2.7"
 install:
  - pip install -r requirements.txt
-script: python -m pytest src/Test
+script:
+ - python -m pytest src/Test --cov src --cov-config src/Test/coverage.ini
 before_install:
   - pip install codecov
+  - pip install pytest-cov
 after_success:
   - codecov

+ 0 - 1
requirements.txt

@@ -1,3 +1,2 @@
 gevent==1.0.1
-pyzmq==14.4.1
 msgpack-python==0.4.4

+ 6 - 0
src/Test/coverage.ini

@@ -0,0 +1,6 @@
+[run]
+branch = True
+omit =
+    src/lib/*
+    src/Test/*
+[report]