Skip to content

Commit

Permalink
add xml coverage report for travis upload to codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault committed Feb 5, 2019
1 parent 172bd0d commit b1e3618
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ __pycache__/
.idea/
.eggs/
.pytest_cache/
coverage.xml
build/
coverage/
dist/
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ clean-test:
@echo "Cleaning tests artifacts..."
rm -fr .tox/
rm -f .coverage
rm -f coverage.xml
rm -fr "$(CUR_DIR)/coverage/"

.PHONY: lint
Expand Down Expand Up @@ -132,6 +133,7 @@ test-tox: install-dev install
coverage: install-dev install
@echo "Running coverage analysis..."
@bash -c 'source "$(CONDA_HOME)/bin/activate" "$(CONDA_ENV)"; coverage run --source magpie setup.py test || true'
@bash -c 'source "$(CONDA_HOME)/bin/activate" "$(CONDA_ENV)"; coverage xml -i'
@bash -c 'source "$(CONDA_HOME)/bin/activate" "$(CONDA_ENV)"; coverage report -m'

.PHONY: coverage-show
Expand Down

0 comments on commit b1e3618

Please sign in to comment.