-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (33 loc) · 899 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
38
39
40
41
42
.DEFAULT: test
SHELL:=/bin/bash
TEST?=$$(go list ./... |grep -v 'vendor')
GO_TARGETS= ./cli ./gocd ./gocd-*generator
doc:
godoc2md github.com/drewsonne/go-gocd/gocd > gocd/README.md
format:
gofmt -w -s .
$(MAKE) -C ./cli/ format
$(MAKE) -C ./gocd/ format
$(MAKE) -C ./gocd-cli-action-generator/ format
lint:
diff -u <(echo -n) <(gofmt -d -s main.go $(GO_TARGETS))
golint -set_exit_status . $(glide novendor)
test: lint
go tool vet $(GO_TARGETS)
go tool vet main.go
bash scripts/go-test.sh
cat coverage.out
before_install:
@go get github.com/golang/lint/golint
@go install github.com/golang/lint/golint
curl https://glide.sh/get | sh
glide install
build: deploy_on_develop
deploy_on_tag:
gem install --no-ri --no-rdoc -v "1.8.1" fpm
go get
goreleaser --debug
deploy_on_develop:
gem install --no-ri --no-rdoc -v "1.8.1" fpm
go get
goreleaser --debug --rm-dist --snapshot