From 7afd4baa0a7bc92c25258bbf890dacc0689a4167 Mon Sep 17 00:00:00 2001 From: Gerard Roche Date: Fri, 24 Jan 2020 08:43:20 +0000 Subject: [PATCH] Fix coveralls and add codecov --- .travis.yml | 14 ++++++++++---- README.md | 2 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0c69c72..a52233c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,7 +33,9 @@ install: pip install flake8==3.5; pip install flake8-docstrings; pip install pydocstyle==3.0.0; - pip install python-coveralls==2.8.0; + pip install coverage==4.5.4; + pip install codecov==2.0.15; + pip install python-coveralls; pip install mypy==0.540; flake8 --version; mypy --version; @@ -41,6 +43,8 @@ install: pip install flake8; pip install flake8-docstrings; pip install pydocstyle; + pip install coverage==4.5.4; + pip install codecov==2.0.15; pip install python-coveralls; pip install mypy; flake8 --version; @@ -60,14 +64,16 @@ script: find . -type f -name __init__.py -print; find . -type f -name __init__.pyi -print; if [ "$TRAVIS_PYTHON_VERSION" == "3.3" ]; then - mypy ../ColorSchemeUnit || true; + mypy "../$PACKAGE" || true; else - mypy --show-error-codes ../ColorSchemeUnit || true; - fi + mypy --show-error-codes "../$PACKAGE" || true; + fi; + cd "$TRAVIS_BUILD_DIR"; fi after_success: - coveralls + - codecov notifications: email: false diff --git a/README.md b/README.md index 72f4e3b..d09a8b1 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ A testing framework for Sublime Text color schemes. -[![Build Status](https://img.shields.io/travis/gerardroche/sublime-color-scheme-unit/master.svg?style=flat-square)](https://travis-ci.org/gerardroche/sublime-color-scheme-unit) [![Build status](https://img.shields.io/appveyor/ci/gerardroche/sublime-color-scheme-unit/master.svg?style=flat-square)](https://ci.appveyor.com/project/gerardroche/sublime-color-scheme-unit/branch/master) [![Coverage Status](https://img.shields.io/coveralls/gerardroche/sublime-color-scheme-unit/master.svg?style=flat-square)](https://coveralls.io/github/gerardroche/sublime-color-scheme-unit?branch=master) [![Minimum Sublime Version](https://img.shields.io/badge/sublime-%3E%3D%203.0-brightgreen.svg?style=flat-square)](https://sublimetext.com) [![Latest Stable Version](https://img.shields.io/github/tag/gerardroche/sublime-color-scheme-unit.svg?style=flat-square&label=stable)](https://github.com/gerardroche/sublime-color-scheme-unit/tags) [![GitHub stars](https://img.shields.io/github/stars/gerardroche/sublime-color-scheme-unit.svg?style=flat-square)](https://github.com/gerardroche/sublime-color-scheme-unit/stargazers) [![Downloads](https://img.shields.io/packagecontrol/dt/ColorSchemeUnit.svg?style=flat-square)](https://packagecontrol.io/packages/ColorSchemeUnit) [![Author](https://img.shields.io/badge/twitter-gerardroche-blue.svg?style=flat-square)](https://twitter.com/gerardroche) +[![Travis CI Build Status](https://img.shields.io/travis/gerardroche/sublime-color-scheme-unit/master.svg?style=flat-square&label=travisci)](https://travis-ci.org/gerardroche/sublime-color-scheme-unit) [![AppVeyor Build status](https://img.shields.io/appveyor/ci/gerardroche/sublime-color-scheme-unit/master.svg?style=flat-square&label=appveyor)](https://ci.appveyor.com/project/gerardroche/sublime-color-scheme-unit/branch/master) [![Coveralls Coverage Status](https://img.shields.io/coveralls/gerardroche/sublime-color-scheme-unit/master.svg?style=flat-square)](https://coveralls.io/github/gerardroche/sublime-color-scheme-unit?branch=master) [![Codecov Coverage Status](https://img.shields.io/codecov/c/github/gerardroche/sublime-color-scheme-unit/master?style=flat-square&label=codecov)](https://codecov.io/gh/gerardroche/sublime-color-scheme-unit/branch/master) [![Minimum Sublime Version](https://img.shields.io/badge/sublime-%3E%3D%203.0-brightgreen.svg?style=flat-square)](https://sublimetext.com) [![Latest Stable Version](https://img.shields.io/github/tag/gerardroche/sublime-color-scheme-unit.svg?style=flat-square&label=stable)](https://github.com/gerardroche/sublime-color-scheme-unit/tags) [![GitHub stars](https://img.shields.io/github/stars/gerardroche/sublime-color-scheme-unit.svg?style=flat-square)](https://github.com/gerardroche/sublime-color-scheme-unit/stargazers) [![Downloads](https://img.shields.io/packagecontrol/dt/ColorSchemeUnit.svg?style=flat-square)](https://packagecontrol.io/packages/ColorSchemeUnit) [![Author](https://img.shields.io/badge/twitter-gerardroche-blue.svg?style=flat-square)](https://twitter.com/gerardroche) Many color schemes available for Sublime Text are not kept up to date, don't support plugins, use too many variants of the same colors, or only exist to be compatible with a specific theme. They tend to go out of date and break in unexpected and unknown ways. [ColorSchemeUnit](https://github.com/gerardroche/sublime-color-scheme-unit), which is a testing framework for Sublime Text color schemes, helps improve the quality of color schemes and prevent regressions.