Skip to content

Commit

Permalink
add codecov settings
Browse files Browse the repository at this point in the history
  • Loading branch information
sirfoga committed Oct 12, 2018
1 parent 3de91ab commit a3598ce
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
### project specifics ###
.coveralls.yml
.idea/
.coveragerc

### PyCharm ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
Expand Down
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ sudo: false
language: "python"
install:
- "pip3 install -U pip" # upgrade pip
- "pip3 install codecov" # test coverage
- "pip3 install codecov pytest pytest-cov" # test coverage
- "pip3 install pylint pylint-exit" # measure code lint
- "git clone --depth=1 https://github.com/sirfoga/pyhal.git" # clone repo
- "cd pyhal"
- "make pip-install" # install
script:
- "codecov" # test coverage
- "pytest --cov=./" # test coverage
- "codecov"
- "pylint3 -j 8 hal/* || pylint-exit $?" # measure code lint
notifications:
email: "false" # no email notify
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</div>

<div align="center">
<a href="https://travis-ci.org/sirfoga/pyhal"><img alt="Build Status" src="https://travis-ci.org/sirfoga/pyhal.svg?branch=master"></a> <a href="https://coveralls.io/github/sirfoga/pyhal?branch=master"><img alt="Coverage Status" src="https://coveralls.io/repos/github/sirfoga/pyhal/badge.svg?branch=master"></a> <a href="https://landscape.io/github/sirfoga/hal/master"><img alt="Code Health" src="https://landscape.io/github/sirfoga/pyhal/master/landscape.svg?style=flat"></a>
<a href="https://travis-ci.org/sirfoga/pyhal"><img alt="Build Status" src="https://travis-ci.org/sirfoga/pyhal.svg?branch=master"></a> codecov badge <a href="https://landscape.io/github/sirfoga/hal/master"><img alt="Code Health" src="https://landscape.io/github/sirfoga/pyhal/master/landscape.svg?style=flat"></a>
</div>


Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.2.3 (495cb230aa66a429989d822c84b7ca23d8be5403)
10.2.3 (bdf334b9ffd2887c10998fc493e9021feb7c1f84)
21 changes: 21 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
codecov:
notify:
require_ci_to_pass: yes

coverage:
precision: 2
round: down
range: "10...100"

status:
project: yes
patch: yes
changes: no

parsers:
gcov:
branch_detection:
conditional: yes
loop: yes
method: no
macro: no
2 changes: 1 addition & 1 deletion hal/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
__description__ = 'Your swiss knife to perform fast and easy pythonic stuff'
__url__ = 'https://sirfoga.github.io/pyhal/'
__version__ = '10.2.3'
__build__ = '495cb230aa66a429989d822c84b7ca23d8be5403'
__build__ = 'bdf334b9ffd2887c10998fc493e9021feb7c1f84'
__author__ = 'Stefano Fogarollo'
__author_email__ = 'sirfoga@protonmail.com'
__license__ = 'MIT'
Expand Down
2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[pytest]
addopts = -p no:warnings
2 changes: 1 addition & 1 deletion tests/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def from_and_to_lst(lst):
return linked_list.to_lst()


class TestPaths:
class TestLinkedList:
""" Tests hal.files.models.FileSystem path handlers """

def test_build(self):
Expand Down

0 comments on commit a3598ce

Please sign in to comment.