diff --git a/.travis.yml b/.travis.yml index 650aeb0f6..d838740e3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,6 +23,10 @@ install: - patch environment.yml ./.travis/patchfile.patch - conda env create -q -f environment.yml - conda activate sample-factory + - pip install coverage script: - - python -m unittest + - coverage run -m unittest + +after_success: + - bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index 17224b686..00dd04400 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ [![Build Status](https://travis-ci.org/alex-petrenko/sample-factory.svg?branch=master)](https://travis-ci.org/github/alex-petrenko/sample-factory) +[![codecov](https://codecov.io/gh/alex-petrenko/sample-factory/branch/master/graph/badge.svg)](https://codecov.io/gh/alex-petrenko/sample-factory) +[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/alex-petrenko/sample-factory/blob/master/LICENSE) # Sample Factory