add code coverage

This commit is contained in:
FengZiYjun 2018-08-11 10:11:09 +08:00
parent 77b3a0c67d
commit 380fc251f4
2 changed files with 15 additions and 0 deletions

13
.travis.yml Normal file
View File

@ -0,0 +1,13 @@
language: python
python:
- "3.6"
# command to install dependencies
install:
- pip install --quiet -r requirements.txt
- pip install pytest pytest-cov
# command to run tests
script:
- pytest --cov=./
after_success:
- codecov

View File

@ -1,4 +1,6 @@
# FastNLP
[![Build Status](https://travis-ci.org/fastnlp/fastNLP.svg?branch=master)](https://travis-ci.org/fastnlp/fastNLP)
[![codecov](https://codecov.io/gh/fastnlp/fastNLP/branch/master/graph/badge.svg)](https://codecov.io/gh/fastnlp/fastNLP)
```
FastNLP
├── docs