forked from twitchscience/kinsumer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
34 lines (24 loc) · 937 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
34
# .PHONY: integration-reset integration-up integration integration-down format lint tidy
# -----------------------------------------------------------------------------
# TESTING
# -----------------------------------------------------------------------------
integration-reset: integration-down integration-up
integration-up:
(cd integration && docker compose -f ./docker-compose.yml up -d)
sleep 5
integration-down:
(cd integration && docker compose -f ./docker-compose.yml down)
rm -rf integration/.localstack
integration: integration-up
go test -v ./...
# -----------------------------------------------------------------------------
# FORMATTING
# -----------------------------------------------------------------------------
format:
GO111MODULE=on go fmt .
GO111MODULE=on gofmt -s -w .
lint:
GO111MODULE=on go install golang.org/x/lint/golint@latest
GO111MODULE=on golint .
tidy:
GO111MODULE=on go mod tidy