Skip to content

Commit

Permalink
new: pkg: migration to codecov for merged reports between ``travi…
Browse files Browse the repository at this point in the history
…s`` and ``appveyor``.
  • Loading branch information
vaab committed Mar 17, 2017
1 parent b5dfc96 commit da73be7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
7 changes: 1 addition & 6 deletions .coveragerc
@@ -1,7 +1,7 @@
# .coveragerc to control coverage.py
[run]
branch = True
source = gitchangelog

[report]
# Regexes for lines to exclude from consideration
exclude_lines =
Expand All @@ -18,11 +18,6 @@ exclude_lines =

# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:

if PY3:

if not PY3:

ignore_errors = True
[html]
Expand Down
8 changes: 5 additions & 3 deletions .travis.yml
Expand Up @@ -7,13 +7,15 @@ python:
install:
- git fetch --unshallow || true ## required as we need it to make own gitchangelog
- if [ -e requirements.txt ]; then pip install -r requirements.txt; fi
script:
- pip install coverage
## getting test deps
- python setup.py develop easy_install "$(./autogen.sh --get-name)[test]"
- python setup.py develop easy_install "$(./autogen.sh --get-name)[test]"
script:
## real tests
- nosetests -sx .
after_success:
- coveralls
- "bash <(curl -s https://codecov.io/bash) #dovis: ignore"


## Ignored by Travis, but used internally to check packaging
dist_check:
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Expand Up @@ -18,8 +18,8 @@ gitchangelog
:target: https://ci.appveyor.com/project/vaab/gitchangelog/branch/master
:alt: Appveyor CI build status

.. image:: https://img.shields.io/coveralls/vaab/gitchangelog/master.svg?style=flat
:target: https://coveralls.io/r/vaab/gitchangelog
.. image:: https://img.shields.io/codecov/c/github/vaab/gitchangelog.svg
:target: https://codecov.io/gh/vaab/gitchangelog
:alt: Test coverage


Expand Down
5 changes: 4 additions & 1 deletion appveyor.yml
Expand Up @@ -28,7 +28,7 @@ build: false
before_test:
- for /f %%i in ('bash .\autogen.sh --get-name') do set PACKAGE_NAME=%%i
- python setup.py develop easy_install %PACKAGE_NAME%[test]
- pip install coveralls
- pip install coverage codecov

## Custom test script
test_script:
Expand All @@ -44,3 +44,6 @@ test_script:
- python setup.py install
- gitchangelog --debug
- "gitchangelog HEAD^^..HEAD"

after_test:
- "codecov & REM #dovis: ignore"

0 comments on commit da73be7

Please sign in to comment.