forked from psincraian/pepy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (23 loc) · 923 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
DOCKER-COMPOSE = docker-compose -f infrastructure/docker-compose.yml --project-directory .
params?=
install:
pip install pipenv
pipenv install --dev
start: install
pipenv run gunicorn -c infrastructure/gunicorn.conf.py -b :80 pepy.infrastructure.web.__init__:app
start-containers:
$(DOCKER-COMPOSE) up -d
until curl --silent -XGET --fail http://localhost:5200/health-check; do printf '.'; sleep 1; done
stop-containers:
$(DOCKER-COMPOSE) stop
remove-containers:
$(DOCKER-COMPOSE) down
unit-tests:
$(DOCKER-COMPOSE) exec $(params) pepy pipenv run pytest tests/unit
integration-tests:
$(DOCKER-COMPOSE) exec $(params) pepy pipenv run pytest tests/integration
acceptance-tests:
$(DOCKER-COMPOSE) exec $(params) pepy pipenv run behave tests/acceptance
tests: unit-tests acceptance-tests
format-code:
$(DOCKER-COMPOSE) exec $(params) pepy pipenv run black -l 120 --exclude=".*\/node_modules" pepy/ tests/