Dropped docs targets from Makefile and tox.ini

This commit is contained in:
Victor Ng 2018-03-16 13:39:43 -04:00 коммит произвёл Sarah Bird
Родитель 2a8c186e71
Коммит 219b5df60b
2 изменённых файлов: 4 добавлений и 17 удалений

Просмотреть файл

@ -1,24 +1,20 @@
.PHONY: build migrate shell presto-cli up fixtures tests flake8 docs ci
.PHONY: build shell up tests flake8 ci
help:
@echo "Welcome to taar_api\n"
@echo "The list of commands for local development:\n"
@echo " build Builds the docker images for the docker-compose setup"
@echo " migrate Runs the Django database migrations"
@echo " shell Opens a Bash shell"
@echo " django-shell Opens a Bash shell"
@echo " up Runs the whole stack, served under http://localhost:8000/"
@echo " tests Run pytest tests using tox"
@echo " flake8 Run flake8 using tox"
@echo " docs Build the docs using tox"
@echo " ci Run tests, flake8 and docs"
@echo " ci Run tests and flake8"
@echo " freeze Update the python dependencies in requirements.txt"
build:
docker-compose build
migrate:
docker-compose run web python manage.py migrate --run-syncdb
shell:
docker-compose run web bash
@ -34,8 +30,5 @@ tests:
flake8:
docker-compose run web tox -eflake8
docs:
docker-compose run web tox -edocs
ci:
docker-compose run web tox

Просмотреть файл

@ -1,5 +1,5 @@
[tox]
envlist = tests, flake8, docs
envlist = tests, flake8
[pytest]
python_files=tests.py test_*.py
@ -25,9 +25,3 @@ commands =
[testenv:flake8]
deps = flake8
commands = flake8 taar_api
[testenv:docs]
whitelist_externals = make
commands =
pip install -r docs/requirements.txt -q
make -C docs html