Commit d1b74407 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Revised makefile.

Former-commit-id: bd283bd6
Former-commit-id: 17a8d7f7
parent a8ec7ccc
......@@ -40,7 +40,8 @@ htmlcov/
.coverage
.coverage.*
.cache
#nosetests.xml
nosetests.html
nosetests.xml
coverage.xml
*,cover
.hypothesis/
......
......@@ -14,8 +14,6 @@ test_geomultisens:
paths:
- htmlcov/
- docs/_build/html/
- nosetests.xml
- nosetests.html
pages:
stage: deploy
......@@ -24,7 +22,7 @@ pages:
script:
- mkdir -p public/coverage
- cp -r htmlcov/* public/coverage/
- mkdir -p public/nosetests_reports/
- mkdir -p public/nosetests_reports
- cp nosetests.* public/nosetests_reports/
- mkdir -p public/doc
- cp -r docs/_build/html/* public/doc/
......
.PHONY: clean clean-test clean-pyc clean-build docs help
.PHONY: clean clean-test clean-pyc clean-build docs help nosetests
.DEFAULT_GOAL := help
define BROWSER_PYSCRIPT
import os, webbrowser, sys
......@@ -59,21 +59,18 @@ test: ## run tests quickly with the default Python
test-all: ## run tests on every Python version with tox
tox
coverage: ## check code coverage quickly with the default Python
coverage erase
coverage: clean-test ## check code coverage quickly with the default Python
coverage run --source geomultisens setup.py test
coverage combine # must be called in order to make coverage work in multiprocessing
coverage report -m
coverage html
$(BROWSER) htmlcov/index.html
nosetests: # Runs nosetests with coverage, xUnit and nose-html-output
# - puts the coverage results in the folder 'htmlcov'
# - generates 'nosetests.html' (--with-html)
# - generates 'nosetests.xml' (--with-xunit) which is currently not visualizable by GitLab
#nosetests -vv --with-coverage --cover-package=geomultisens --cover-erase --cover-html --cover-html-dir=htmlcov #\
# #--with-html --with-xunit
nose2
## $(BROWSER) htmlcov/index.html
nosetests: clean-test ## Runs nosetests with coverage, xUnit and nose-html-output
## - puts the coverage results in the folder 'htmlcov'
## - generates 'nosetests.html' (--with-html)
## - generates 'nosetests.xml' (--with-xunit) which is currently not visualizable by GitLab
nosetests -vv --with-coverage --cover-package=geomultisens --cover-erase --cover-html --cover-html-dir=htmlcov --with-html --with-xunit
docs: ## generate Sphinx HTML documentation, including API docs
rm -f docs/geomultisens.rst
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment