mirror of https://github.com/pulumi/pulumi.git
26 lines
793 B
Makefile
26 lines
793 B
Makefile
PROJECT_NAME := Pulumi Go SDK
|
|
LANGHOST_PKG := github.com/pulumi/pulumi/sdk/go/pulumi-language-go
|
|
VERSION := $(shell ../../scripts/get-version)
|
|
PROJECT_PKGS := $(shell go list ./pulumi/... ./pulumi-language-go/... | grep -v /vendor/)
|
|
|
|
TESTPARALLELISM := 10
|
|
|
|
include ../../build/common.mk
|
|
|
|
build::
|
|
go install -ldflags "-X github.com/pulumi/pulumi/pkg/version.Version=${VERSION}" ${LANGHOST_PKG}
|
|
|
|
install_plugin::
|
|
GOBIN=$(PULUMI_BIN) go install -ldflags "-X github.com/pulumi/pulumi/pkg/version.Version=${VERSION}" ${LANGHOST_PKG}
|
|
|
|
install:: install_plugin
|
|
|
|
lint::
|
|
golangci-lint run
|
|
|
|
test_fast::
|
|
go test -count=1 -cover -parallel ${TESTPARALLELISM} ${PROJECT_PKGS}
|
|
|
|
dist::
|
|
go install -ldflags "-X github.com/pulumi/pulumi/pkg/version.Version=${VERSION}" ${LANGHOST_PKG}
|