Browse Source

add code coverage

tags/v0.1.0
FengZiYjun 6 years ago
parent
commit
380fc251f4
2 changed files with 15 additions and 0 deletions
  1. +13
    -0
      .travis.yml
  2. +2
    -0
      README.md

+ 13
- 0
.travis.yml 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

+ 2
- 0
README.md 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


Loading…
Cancel
Save