Skip to content

Commit 278ef67

Browse files
rafaelgottsAlexandrosMor
authored andcommitted
Fix coverage command (#89)
* Create Makefile with install command * Move coverage command to Makefile * Include Adyen module as only source of coverage config
1 parent 63a118f commit 278ef67

File tree

5 files changed

+22
-4
lines changed

5 files changed

+22
-4
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
*.pypirc
55
releaseguide.md
66
venv/
7-
.idea/
7+
.idea/
8+
.coverage

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ cache: pip
77
before_install:
88
- sudo apt-get install libgnutls28-dev
99
install:
10-
- pip install requests pycurl mock coveralls pylint pycodestyle
10+
- make install
1111
script:
12-
- coverage run -m unittest discover -s test -p '*Test.py'
12+
- make coverage
1313
- pycodestyle -v
1414
after_success:
1515
- coveralls

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
install:
2+
@pip install requests pycurl mock coveralls pylint pycodestyle
3+
4+
tests:
5+
@python -m unittest discover -s test -p '*Test.py'
6+
7+
coverage:
8+
@coverage run -m unittest discover -s test -p '*Test.py'

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@ The Library supports all APIs under the following services:
2424

2525
## Installation
2626

27-
Clone this git repository or use pip: ```pip install Adyen```
27+
### For development propose
28+
29+
Clone this repository and run ```make install```
30+
31+
### For usage propose
32+
33+
Use pip command: ```pip install Adyen```
2834

2935
## Usage
3036

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ tag_build =
88
tag_date = 0
99
tag_svn_revision = 0
1010

11+
[coverage:run]
12+
source =
13+
Adyen/

0 commit comments

Comments
 (0)