Skip to content

Commit

Permalink
Replaced codeclimate with codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
mikicz committed Feb 25, 2018
1 parent 560b1fa commit 9d0a6e9
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 22 deletions.
14 changes: 0 additions & 14 deletions .codeclimate.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[run]
source = arca

[report]
exclude_lines =
pragma: no cover
raise NotImplementedError
if __name__ == .__main__.:
ignore_errors = True
show_missing = True
include =
arca*
10 changes: 3 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
env:
global:
- CC_TEST_REPORTER_ID=787a2f89b15c637323c7340d65ec17e898ac44480706b4b4122ea040c2a88f1d
- DOCKER_HUB_USERNAME=mikicz
- secure: g80a90m7rMFm1+sYNRcu34TJ+eqD5hOeiWNTGQg5mNa46mC/XtAyAIR1JTmRR0cTiW1agcTdZ9GiFrNhxskf2kHd8T9UrKGXUGpg47SLMjQgqE4XS0QFtqftFESmEQk5FEQzPKqbm+tF7D05Bt8FcgqGfqPQwOqliooUdxkbJ0FAvd8MlbmmyCG9E3zq7pAURoAFKOJ854x5zYLF3JptOPACz4hEh3nQNFEF8xFwQFRVxdg6/zKD9ubxuqc3EDCmv/yjcWXfQExBct1+kUpFhzWa1QzYZE3vr+MGBcBEo+jw34bHDT7cQTywfsjQXDeZa0nt3/ieR1oAbNdscZp8PWRGvKjWRVWU62x6VpmETQUWIoU7S0Rlqosy9Y+oqR3yl69ByjOuvZAGeso2CKj+SR+TFvGM+YItMXQhmA9KXhvuxnddxwOvZlqZ5cLF8tTeDEvI9uIDoeEG0lFmmcvt5o3MQ7jLAXfQMP0I740TXY7CCqa1oh3Bv7bvs9UcjNXTm4RrxVsZcCHOhlD4RoUWcZ7R7fQ048yrbaT3XvuY9NPBdFJyTIkYEMNqvdpXNhzTFOgaXr6GyQsZn8GGlkqqq2Ldp0NgLTR+0FTa1v8Y7Ef6YBWMCqC5WJkoEekdI6dyOOIJUlKMd3IDyu6mfaUnF1HG/kqUNGV+PLV47l/oo1c=
language: python
Expand All @@ -16,19 +15,16 @@ services:
- docker
install:
- python setup.py install
- pip install codecov
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
> ./cc-test-reporter
- chmod +x ./cc-test-reporter
- "./cc-test-reporter before-build"
- docker login -u "$DOCKER_HUB_USERNAME" -p "$DOCKER_HUB_PASSWORD"
script:
- python setup.py test 2>error.log
- echo "==============================="
- echo "Captured error out from tests"
- cat error.log
after_script:
- "./cc-test-reporter after-build -t coverage.py"
after_success:
- codecov
branches:
only:
master
Expand Down
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ arca
.. image:: https://travis-ci.org/mikicz/arca.svg?branch=master
:target: https://travis-ci.org/mikicz/arca

.. image:: https://codecov.io/gh/mikicz/arca/branch/master/graph/badge.svg
:target: https://codecov.io/gh/mikicz/arca

.. image:: https://badge.fury.io/py/arca.svg
:target: https://badge.fury.io/py/arca

Expand Down
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[pytest]
# -s is required to test vagrant - fabric needs stdin not to be captured
addopts = -s --flake8 --cov arca --cov-report term-missing --cov-report xml:coverage.xml
addopts = -s --flake8 --cov=./
flake8-max-line-length = 120

0 comments on commit 9d0a6e9

Please sign in to comment.