-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
35 lines (25 loc) · 877 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
34
35
.PHONY: test setup-dev docker-setup docker-run functional-test docs
DATABASE_PASSWORD ?= test
REMOTE_URL ?= http://localhost:5000
docker-setup:
docker-compose build
DATABASE_PASSWORD=$(DATABASE_PASSWORD) \
docker-compose run web python manage.py migrate
docker-run:
docker-compose up
lint:
pycodestyle . --exclude=docs
unit-test:
coverage run --source='.' manage.py test
coverage report
functional-test:
python manage.py behave -e smoke.feature
test: lint unit-test functional-test
smoke:
REMOTE_URL=$(REMOTE_URL) python manage.py behave -i smoke.feature
docker-smoke:
docker ps -f name=nibble-ci | grep Up || docker run -d --name nibble-ci -v $(PWD):/app --workdir /app nibbleproject/nibble-ci sleep 100000
docker exec -i nibble-ci pipenv install --dev --system
docker exec -i -e REMOTE_URL=$(REMOTE_URL) nibble-ci make smoke
docs:
cd docs/; make html