From 090a142475d99cea23a7c611f7a1ac1042ef72c1 Mon Sep 17 00:00:00 2001 From: Tushar K Date: Tue, 23 Jun 2020 17:13:08 -0700 Subject: [PATCH] Added code coverage with badges for the same and for license (#20) --- .travis.yml | 6 +++++- README.md | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) 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 da2310cb8..0679f2f0c 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