Просмотр исходного кода

Merge pull request #56 from hvdklauw/coveralls

Added coveralls.io support
sh4nks 10 лет назад
Родитель
Сommit
ec99adf657
3 измененных файлов с 7 добавлено и 1 удалено
  1. 5 1
      .travis.yml
  2. 1 0
      README.md
  3. 1 0
      requirements.txt

+ 5 - 1
.travis.yml

@@ -4,5 +4,9 @@ python:
 # command to install dependencies
 # command to install dependencies
 install:
 install:
   - "pip install -r requirements.txt"
   - "pip install -r requirements.txt"
+  - "pip install coveralls"
 # command to run tests
 # command to run tests
-script: py.test
+script:
+  - py.test --cov=flaskbb --cov-report=term-missing tests
+after_success:
+  - coveralls

+ 1 - 0
README.md

@@ -1,4 +1,5 @@
 [![Build Status](https://travis-ci.org/sh4nks/flaskbb.svg?branch=master)](https://travis-ci.org/sh4nks/flaskbb)
 [![Build Status](https://travis-ci.org/sh4nks/flaskbb.svg?branch=master)](https://travis-ci.org/sh4nks/flaskbb)
+[![Coverage Status](https://coveralls.io/repos/sh4nks/flaskbb/badge.png)](https://coveralls.io/r/sh4nks/flaskbb)
 
 
 # INTRODUCTION
 # INTRODUCTION
 
 

+ 1 - 0
requirements.txt

@@ -25,6 +25,7 @@ itsdangerous==0.24
 py==1.4.20
 py==1.4.20
 pytest==2.5.2
 pytest==2.5.2
 pytest-random==0.02
 pytest-random==0.02
+pytest-cov==1.7.0
 redis==2.10.1
 redis==2.10.1
 scrypt==0.6.1
 scrypt==0.6.1
 simplejson==3.5.3
 simplejson==3.5.3