Makefile: add convenience targets.
Change-Id: I3e8fcb6d7db87c6b85dc03b801103f41e199c11c
This commit is contained in:
parent
0aa542f07c
commit
88a2230fb7
4
.gitignore
vendored
4
.gitignore
vendored
@ -14,3 +14,7 @@ doc/_build
|
|||||||
|
|
||||||
# Mac
|
# Mac
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
|
# pytest
|
||||||
|
.cache
|
||||||
|
.coverage
|
||||||
|
37
Makefile
37
Makefile
@ -1,17 +1,5 @@
|
|||||||
.PHONY: all doc clean test
|
|
||||||
|
|
||||||
all: clean doc
|
all: clean doc
|
||||||
|
|
||||||
clean:
|
|
||||||
@echo "cleaning pyc files"
|
|
||||||
@find . -name '*.pyc' -delete
|
|
||||||
@echo "cleaning html tree"
|
|
||||||
@rm -rf html
|
|
||||||
@mkdir html
|
|
||||||
|
|
||||||
doc:
|
|
||||||
$(MAKE) -C doc html
|
|
||||||
|
|
||||||
demo:
|
demo:
|
||||||
@bin/secop-server -q demo &
|
@bin/secop-server -q demo &
|
||||||
@bin/secop-server -q test &
|
@bin/secop-server -q test &
|
||||||
@ -19,6 +7,27 @@ demo:
|
|||||||
@bin/secop-gui localhost:10767 localhost:10768 localhost:10769
|
@bin/secop-gui localhost:10767 localhost:10768 localhost:10769
|
||||||
@ps aux|grep [s]ecop-server|awk '{print $$2}'|xargs kill
|
@ps aux|grep [s]ecop-server|awk '{print $$2}'|xargs kill
|
||||||
|
|
||||||
|
build:
|
||||||
|
python setup.py build
|
||||||
|
|
||||||
|
clean:
|
||||||
|
find . -name '*.pyc' -delete
|
||||||
|
rm -rf build
|
||||||
|
$(MAKE) -C doc clean
|
||||||
|
|
||||||
|
install: build
|
||||||
|
python setup.py install
|
||||||
|
|
||||||
test:
|
test:
|
||||||
#@pytest -v --lf -l --tb=auto --setup-plan test/
|
python $(shell which pytest) -v test
|
||||||
@pytest -v --lf -l --tb=long --setup-show test/
|
|
||||||
|
test-verbose:
|
||||||
|
python $(shell which pytest) -v test -s
|
||||||
|
|
||||||
|
test-coverage:
|
||||||
|
python $(shell which pytest) -v test --cov=secop
|
||||||
|
|
||||||
|
doc:
|
||||||
|
$(MAKE) -C doc html
|
||||||
|
|
||||||
|
.PHONY: doc clean test test-verbose test-coverage demo
|
||||||
|
@ -4,3 +4,4 @@ Sphinx>=1.2.1
|
|||||||
# test suite
|
# test suite
|
||||||
pytest
|
pytest
|
||||||
pytest-randomly>=1.1
|
pytest-randomly>=1.1
|
||||||
|
pytest-cov
|
||||||
|
Loading…
x
Reference in New Issue
Block a user