forked from DataDog/stratus-red-team
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (19 loc) · 879 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
BUILD_VERSION=dev-snapshot
MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
ROOT_DIR := $(dir $(MAKEFILE_PATH))
.PHONY: docs
all: build
build:
cd v2 && go build -ldflags="-X main.BuildVersion=$(BUILD_VERSION)" -o ../bin/stratus cmd/stratus/*.go
docs:
cd v2 && go run ./tools/ ../docs
test:
cd v2 && go test ./... -v
thirdparty-licenses:
go get github.com/google/go-licenses
go install github.com/google/go-licenses
cd v2 && $(GOPATH)/bin/go-licenses csv github.com/datadog/stratus-red-team/v2/cmd/stratus | sort > $(ROOT_DIR)/LICENSE-3rdparty.csv
mocks:
cd v2 && mockery --name=StateManager --dir internal/state --output internal/state/mocks
cd v2 && mockery --name=TerraformManager --dir pkg/stratus/runner --output pkg/stratus/runner/mocks
cd v2 && mockery --name=FileSystem --structname FileSystemMock --dir internal/state --output internal/state/mocks