forked from nordcloud/go-pingdom
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
27 lines (22 loc) · 894 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
default: test
vendor:
go mod vendor
install:
go install ./...
lint:
golint github.com/DrFaust92/go-pingdom/pingdom
golint github.com/DrFaust92/go-pingdom/pingdomext
golint github.com/DrFaust92/go-pingdom/solarwinds
test:
go test -cover github.com/DrFaust92/go-pingdom/pingdom
go test -cover github.com/DrFaust92/go-pingdom/pingdomext
go test -cover github.com/DrFaust92/go-pingdom/solarwinds
acceptance:
PINGDOM_ACCEPTANCE=1 PINGDOM_EXT_ACCEPTANCE=1 SOLARWINDS_ACCEPTANCE=1 go test github.com/DrFaust92/go-pingdom/acceptance
cov:
go test github.com/DrFaust92/go-pingdom/pingdom -coverprofile=coverage.out
go test github.com/DrFaust92/go-pingdom/pingdomext -coverprofile=coverage.out
go test github.com/DrFaust92/go-pingdom/solarwinds -coverprofile=coverage.out
go tool cover -func=coverage.out
rm coverage.out
.PHONY: default vendor vendor_update install test acceptance cov