Skip to content

Commit

Permalink
Set source in coveragerc rather than passing on command-line.
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer committed May 7, 2018
1 parent 0bd1e28 commit 95d44cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[run]
branch = True
source = dulwich

[report]
exclude_lines =
Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ install:

script:
# Test without c extensions
- python -m coverage run -p --source=dulwich -m unittest dulwich.tests.test_suite
- python -m coverage run -p -m unittest dulwich.tests.test_suite

# Test with c extensions
- python setup.py build_ext -i
- python -m coverage run -p --source=dulwich -m unittest dulwich.tests.test_suite
- python -m coverage run -p -m unittest dulwich.tests.test_suite

# Style
- make style
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ before-push: check
git diff origin/master | $(PEP8) --diff

coverage:
$(COVERAGE) run --source=dulwich -m unittest dulwich.tests.test_suite dulwich.contrib.test_suite
$(COVERAGE) run -m unittest dulwich.tests.test_suite dulwich.contrib.test_suite

coverage-html: coverage
$(COVERAGE) html

0 comments on commit 95d44cd

Please sign in to comment.