feat: ci: lint, test and gen coverage
This commit is contained in:
parent
f172002294
commit
a3bf5cd652
2 changed files with 3 additions and 1 deletions
|
@ -3,5 +3,6 @@ pipeline:
|
||||||
image: python
|
image: python
|
||||||
commands:
|
commands:
|
||||||
- pip install virtualenv
|
- pip install virtualenv
|
||||||
- virtualenv venv
|
|
||||||
- make env
|
- make env
|
||||||
|
- make lint
|
||||||
|
- make coverage
|
||||||
|
|
1
Makefile
1
Makefile
|
@ -8,6 +8,7 @@ default: ## Run app
|
||||||
. ./venv/bin/activate && python manage.py runserver
|
. ./venv/bin/activate && python manage.py runserver
|
||||||
|
|
||||||
env: ## setup environment
|
env: ## setup environment
|
||||||
|
@-virtualenv venv
|
||||||
. ./venv/bin/activate && pip install -r requirements.txt
|
. ./venv/bin/activate && pip install -r requirements.txt
|
||||||
|
|
||||||
coverage: ## Generate test coverage report
|
coverage: ## Generate test coverage report
|
||||||
|
|
Reference in a new issue