forked from biocore/micronota
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (25 loc) · 933 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# ----------------------------------------------------------------------------
# Copyright (c) 2015--, micronota development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
# ----------------------------------------------------------------------------
.DEFAULT_GOAL := help
ifeq ($(WITH_COVERAGE), TRUE)
TEST_COMMAND = COVERAGE_FILE=.coverage coverage run --rcfile .coveragerc setup.py nosetests --with-doctest
else
TEST_COMMAND = nosetests --with-doctest
endif
help:
@echo 'Use "make test" to run all the unit tests and docstring tests.'
@echo 'Use "make pep8" to validate PEP8 compliance.'
@echo 'Use "make html" to create html documentation with sphinx'
@echo 'Use "make all" to run all the targets listed above.'
test:
$(TEST_COMMAND)
pep8:
flake8 micronota setup.py
html:
make -C doc clean html
all: pep8 html test