Simplify Makefile

This commit is contained in:
BJ Dierkes 2018-02-02 16:48:26 -06:00
parent 82c388c787
commit e04211d39f

View File

@ -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