-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathMakefile
More file actions
20 lines (16 loc) · 725 Bytes
/
Copy pathMakefile
File metadata and controls
20 lines (16 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Needs to be defined before including Makefile.common to auto-generate targets
DOCKER_ARCHS ?= amd64 armv7 arm64 ppc64le s390x
DOCKER_REPO ?= treydock
export GOPATH ?= $(firstword $(subst :, ,$(shell go env GOPATH)))
GOLANGCI_LINT_VERSION := v2.11.4
include Makefile.common
DOCKER_IMAGE_NAME ?= gpfs_exporter
# Avoid 'operation not permitted' errors when tar tries to set promu tar directory permissions
$(PROMU):
$(eval PROMU_TMP := $(shell mktemp -d))
curl -s -L $(PROMU_URL) | tar -xvzf - -C $(PROMU_TMP) --strip-components=1
mkdir -p $(FIRST_GOPATH)/bin
install -m 0755 $(PROMU_TMP)/promu $(FIRST_GOPATH)/bin/promu
rm -r $(PROMU_TMP)
coverage:
go test -race -coverprofile=coverage.txt -covermode=atomic ./...