-
Notifications
You must be signed in to change notification settings - Fork 355
/
Makefile
37 lines (26 loc) · 692 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
35
36
37
default: build
prepare:
git submodule init
git submodule update
go run ./plugin/stub-generator
test: prepare
go test -timeout 5m $$(go list ./... | grep -v test-fixtures | grep -v stub-generator | grep -v integrationtest)
build:
mkdir -p dist
go build -v -o dist/tflint
install:
go install
e2e: prepare install
go test -timeout 5m $$(go list ./integrationtest/... | grep -v race)
e2e-race: prepare
go test --race --timeout 5m ./integrationtest/race
lint:
golangci-lint run ./...
cd terraform/ && golangci-lint run ./...
clean:
rm -rf dist/
generate:
go generate ./...
release:
go run ./tools/release/main.go
.PHONY: prepare test build install e2e lint clean generate