forked from Azure/acs-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (26 loc) · 783 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
.NOTPARALLEL:
.PHONY: prereqs build test test_fmt validate-generated fmt lint ci devenv
VERSION=`git describe --always --long --dirty`
BUILD=`date +%FT%T%z`
prereqs:
go get github.com/jteeuwen/go-bindata/...
build: prereqs
go generate -v ./...
go get .
go build -v -ldflags="-X main.AcsEngineBuildSHA=${VERSION} -X main.AcsEngineBuildTime=${BUILD}"
cd test/acs-engine-test; go build -v
test: prereqs test_fmt
go test -v ./...
test_fmt: prereqs
test -z "$$(gofmt -s -l . | tee /dev/stderr)"
validate-generated: prereqs
./scripts/validate-generated.sh
fmt:
gofmt -s -l -w .
lint: prereqs
go get -u github.com/golang/lint/golint
# TODO: fix lint errors, enable linting
# golint -set_exit_status
ci: validate-generated build test lint
devenv:
./scripts/devenv.sh