-
Notifications
You must be signed in to change notification settings - Fork 36
/
Makefile
68 lines (45 loc) · 1.46 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
.DELETE_ON_ERROR:
################
# General Jobs #
################
default: vue down
test: test-node test-django
###################
# Individual jobs #
###################
prep:
docker-compose pull
docker-compose build
docker:
docker-compose up -d
docker-staging:
docker-compose --env-file ./.env.test up
down:
docker-compose down --volumes
vue: prep
docker-compose up
test-vue:
docker exec -ti gwells-frontend-1 /bin/bash -c "cd /app/frontend/; npm run test:unit -- --runInBand"
test-vue-update:
docker exec -ti gwells-frontend-1 /bin/bash -c "cd /app/frontend/; npm run test:unit:update"
vue-coverage:
docker exec -ti gwells-frontend-1 /bin/bash -c "cd /app/frontend/; npm run coverage:test"
TEST_PATH ?= "."
test-django:
docker exec -ti gwells-backend-1 /bin/bash -c "cd /app/backend/; python -m coverage run manage.py test ${TEST_PATH} --noinput"
django-coverage:
docker exec -ti gwells-backend-1 /bin/bash -c "cd /app/backend/; coverage report"
django-coverage-html:
docker exec -ti gwells-backend-1 /bin/bash -c "cd /app/backend/; coverage html"
admin-django:
docker exec -ti gwells-backend-1 /bin/bash -c "cd /app/backend; python manage.py createsuperuser"
backend:
docker-compose pull backend
docker-compose build backend
docker-compose up backend
psql:
docker-compose exec db /bin/bash -c "psql -U gwells -d gwells"
DEFAULT_API_TEST := 'local_run_all.sh'
TEST_FILE?="$(DEFAULT_API_TEST)"
api-tests-local:
cd tests/api-tests && "./$(TEST_FILE)"