-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (29 loc) · 832 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
GOPKG = "github.com/Horgix/packer-builder-amazon-ebs-mock"
GO_PKGS = `go list ./... | grep -v /vendor/`
CWD = `pwd`
build:: fmt
go build -o packer-builder-amazon-ebs-mock
docker::
docker run --rm \
-v "${CWD}":"/usr/src/${GOPKG}" \
-w "/usr/src/${GOPKG}" \
-e GOPATH=/usr/ \
golang:1.8 \
make
debug::
PACKER_LOG=true packer build test_configs/simplest_packer.json
fmt::
@go fmt ${GO_PKGS}
test::
@go test ${GO_PKGS}
test_details::
@go test -v ${GO_PKGS} | grep -v '^[[:digit:]]\{4\}/[[:digit:]]\{2\}/[[:digit:]]\{2\}'
lint::
docker run --rm \
-v ${CWD}:/usr/local/go/src/${GOPKG} \
horgix/golint golint ${GO_PKGS}
readme_lint::
docker run --rm \
-v ${CWD}/README.md:/data/README.md \
-v ${CWD}/lint_style.rb:/lint_style.rb \
mivok/markdownlint:0.4.0 --style /lint_style.rb .