-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
37 lines (24 loc) · 957 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
SHELL:=/bin/bash
include .env
# ==============================================================================
# Running tests together with the staticcheck within the local computer
integration-test:
@echo "++++ Run integration tests ++++"
@CGO_ENABLED=0 go test -v ./api/v1/tests/ -count=1
@CGO_ENABLED=0 staticcheck ./...
unit-test:
@echo "++++ Run unit tests ++++"
@CGO_ENABLED=0 go test -v ./encoding/ -count=1
@CGO_ENABLED=0 staticcheck ./encoding/
@CGO_ENABLED=0 go test -v ./provider/ -count=1
@CGO_ENABLED=0 staticcheck ./provider/
@CGO_ENABLED=0 go test -v ./store/postgres/ -count=1
@CGO_ENABLED=0 staticcheck ./store/postgres/
test:unit-test integration-test
# ==============================================================================
up:
@docker-compose up --build --detach --remove-orphans
down:
@docker-compose down --remove-orphans
logs:
@docker-compose logs -f