-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (39 loc) · 1.25 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
excludes = \*~ \*.pyc .cache/\* test_\* __pycache__/\*
e?=dev
PROJECT=overdrive-prod
export ${PROJECT}
export ${e}
.PHONY: clean
clean:
find . -type f -name '*.pyc' -delete
.PHONY: bandit
bandit:
# Bandit checks for known security flaws, vulnerabilies, general bad
# habits and returns non-zero if threshold is met. -ll means were looking
# for a severity of medium and confidence of low.
# ['undefined', 'low', 'medium', 'high']
docker-compose -f docker-compose-${e}.yml run users bandit -ll -i -r ./
.PHONY: flake
flake:
docker-compose -f docker-compose-${e}.yml run users flake8 project
.PHONY: test
test:
docker-compose -f docker-compose-${e}.yml run users python manage.py test
.PHONY: seed-db
seed-db:
docker-compose -f docker-compose-${e}.yml run users python manage.py seed-db
.PHONY: recreate-db
recreate-db:
docker-compose -f docker-compose-${e}.yml run users python manage.py recreate-db
.PHONY: cov
cov:
docker-compose -f docker-compose-${e}.yml run users python manage.py cov
.PHONY: react-scripts
react-scripts:
docker-compose -f docker-compose-${e}.yml run client react-scripts test --coverage
.PHONY: build
build:
docker-compose -f docker-compose-${e}.yml up -d --build
.PHONY: down
down:
docker-compose -f docker-compose-${e}.yml down