pytest 1.0 and makefile
This commit is contained in:
18
makefile
Normal file
18
makefile
Normal file
@@ -0,0 +1,18 @@
|
||||
VENV=./venv/bin/python
|
||||
ALEMBIC=alembic -c ./server/database/alembic/alembic.ini
|
||||
|
||||
.PHONY: test run migrate_head migrate_down migrate_history migrate_current migrate
|
||||
test:
|
||||
pytest -c ./server/testing/pytest.ini ./server/testing/tests/
|
||||
run:
|
||||
$(VENV) run.py
|
||||
migrate_head:
|
||||
$(ALEMBIC) upgrade head
|
||||
migrate_down:
|
||||
$(ALEMBIC) downgrade -1
|
||||
migrate_history:
|
||||
$(ALEMBIC) history
|
||||
migrate_current:
|
||||
$(ALEMBIC) current
|
||||
migrate:
|
||||
$(ALEMBIC) revision --autogenerate
|
||||
Reference in New Issue
Block a user