mirror of
https://github.com/datafolklabs/cement.git
synced 2026-02-06 13:56:49 +00:00
Simplify Makefile
This commit is contained in:
parent
82c388c787
commit
e04211d39f
18
Makefile
18
Makefile
@ -1,20 +1,18 @@
|
||||
.PHONY: all init api-doc test comply clean
|
||||
.PHONY: all dev test comply docs clean
|
||||
|
||||
all: init test test-coverage comply api-docs clean
|
||||
all: test comply comply-test api-docs clean
|
||||
|
||||
init:
|
||||
pip install --upgrade -r requirements-dev.txt
|
||||
dev:
|
||||
docker-compose up -d
|
||||
docker-compose exec cement /bin/ash
|
||||
|
||||
test:
|
||||
python -m pytest -v tests/
|
||||
|
||||
test-coverage:
|
||||
python -m pytest -v --cov=cement --cov-report=term --cov-report=html:coverage-report tests/
|
||||
|
||||
comply:
|
||||
flake8 cement/ tests/
|
||||
|
||||
api-docs:
|
||||
docs:
|
||||
python setup.py build_sphinx
|
||||
@echo
|
||||
@echo DOC: "file://"$$(echo `pwd`/doc/build/html/index.html)
|
||||
@ -23,7 +21,3 @@ api-docs:
|
||||
clean:
|
||||
find . -name '*.py[co]' -delete
|
||||
rm -rf doc/build
|
||||
|
||||
dev:
|
||||
docker-compose up -d
|
||||
docker-compose exec cement /bin/ash
|
||||
|
||||
Loading…
Reference in New Issue
Block a user