Skip to content
Snippets Groups Projects
Unverified Commit d22eb469 authored by Luke Murphy's avatar Luke Murphy
Browse files

Add Makefile for CI targets.

parent 21dcb43f
No related branches found
No related tags found
1 merge request!58Bangladesh staging demo
Makefile 0 → 100644
PIPENV := pipenv run
apply-isort:
@$(PIPENV) isort \
--recursive \
--apply \
--settings-path=setup.cfg
.PHONY: apply-isort
isort:
@$(PIPENV) isort \
--quiet \
--recursive \
--check-only \
--diff \
--settings-path=setup.cfg
.PHONY: isort
pylava:
@ls -d */ | xargs $(PIPENV) pylava
.PHONY: pylava
checks:
$(PIPENV) python manage.py check
$(PIPENV) python manage.py makemigrations --check
.PHONY: checks
style: isort pylava
.PHONY: style
test:
$(PIPENV) pytest -v --cov
.PHONY: test
gitlab-ci: checks style test
.PHONY: gitlab-ci
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment