-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
44 lines (30 loc) · 1.34 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
# outside of docker commands
run-server-models-test:
server/./node_modules/mocha/bin/mocha server/src/tests/models/$(test) --exit
run-server-endpoints-test:
server/./node_modules/mocha/bin/mocha server/src/tests/endpoints/$(test) --exit
run-all-server-tests:
server/./node_modules/mocha/bin/mocha server/src/tests/models/*.test.js --exit
server/./node_modules/mocha/bin/mocha server/src/tests/endpoints/**/*.test.js --exit
run-all-models-tests:
server/./node_modules/mocha/bin/mocha server/src/tests/models/*.test.js --exit
run-all-endpoints-tests:
server/./node_modules/mocha/bin/mocha server/src/tests/endpoints/**/*.test.js --exit
run-db-cmd:
node server/src/commands/db/$(cmd).js
load-fixtures:
server/./node_modules/mocha/bin/mocha server/src/tests/fixtures/loadFixtures.test.js --exit
# docker env related commands
fix_permissions:
sudo chmod 777 -R docker/bitnami
docker-up-build-all: fix_permissions
docker-compose up --build
docker-up-all: fix_permissions
docker-compose up
docker-stop-all:
docker-compose down
docker-load-fixtures:
docker exec server ./node_modules/mocha/bin/mocha src/tests/fixtures/loadFixtures.test.js --exit
docker-run-all-server-tests:
docker exec server ./node_modules/mocha/bin/mocha src/tests/models/*.test.js --exit
docker exec server ./node_modules/mocha/bin/mocha src/tests/endpoints/**/*.test.js --exit