forked from gdaz/assessment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (22 loc) · 810 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
dbserver:
docker start assessment-db-1
DATABASE_URL=postgres://root:root@localhost:5432/assessment?sslmode=disable PORT=:2565 go run server.go
server:
DATABASE_URL=postgres://root:root@localhost:5432/assessment?sslmode=disable PORT=:2565 go run server.go
unittest:
go test -v --tags=unit ./...
ittest:
go test -v --tags=integration ./...
dbstart:
docker start assessment-db-1
dbstop:
docker stop assessment-db-1
cup:
docker-compose -f docker-composer.test.yml up --build --abort-on-container-exit --exit-code-from it_tests
cdown:
docker-compose -f docker-composer.test.yml down
cdup:
docker-compose -f docker-composer.test.yml down
docker-compose -f docker-composer.test.yml up --build --abort-on-container-exit --exit-code-from it_tests
newman:
newman run expenses.postman_collection.json