From f977c25d0d229f25f77ad6bc04aed925145038ed Mon Sep 17 00:00:00 2001 From: Kevin Barabash Date: Mon, 5 Feb 2018 09:33:31 -0500 Subject: [PATCH] set up code coverage (#1140) * set up code coverage * add coverage badge --- .travis.yml | 3 +++ README.md | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a8833505..e5c46123 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,9 @@ before_script: - docker pull selenium/standalone-firefox:2.48.2 - docker pull selenium/standalone-chrome:2.48.2 - docker images --no-trunc +install: + - npm install -g codecov script: - npm test + - npm run coverage && codecov - dockers/Screenshotter/screenshotter.sh --verify diff --git a/README.md b/README.md index 64fcd37e..fcfe5d65 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ -# [KaTeX](https://khan.github.io/KaTeX/) [![Build Status](https://travis-ci.org/Khan/KaTeX.svg?branch=master)](https://travis-ci.org/Khan/KaTeX) - +# [KaTeX](https://khan.github.io/KaTeX/) +[![Build Status](https://travis-ci.org/Khan/KaTeX.svg?branch=master)](https://travis-ci.org/Khan/KaTeX) +[![codecov](https://codecov.io/gh/Khan/KaTeX/branch/master/graph/badge.svg)](https://codecov.io/gh/Khan/KaTeX) [![Join the chat at https://gitter.im/Khan/KaTeX](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Khan/KaTeX?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) KaTeX is a fast, easy-to-use JavaScript library for TeX math rendering on the web.