mirror of https://github.com/pulumi/pulumi.git
37 lines
1.1 KiB
Makefile
37 lines
1.1 KiB
Makefile
PROJECT_NAME := Pulumi Go SDK
|
|
LANGHOST_PKG := github.com/pulumi/pulumi/sdk/v2/go/pulumi-language-go
|
|
VERSION := $(shell ../../scripts/get-version HEAD)
|
|
PROJECT_PKGS := $(shell go list ./pulumi/... ./pulumi-language-go/... ./common/...| grep -v /vendor/ | grep -v templates)
|
|
|
|
TESTPARALLELISM := 10
|
|
|
|
include ../../build/common.mk
|
|
|
|
gen::
|
|
go generate ./pulumi/...
|
|
|
|
build:: gen
|
|
go install -ldflags "-X github.com/pulumi/pulumi/sdk/v2/go/common/version.Version=${VERSION}" ${LANGHOST_PKG}
|
|
|
|
build_binary:: gen
|
|
go build -o bin/pulumi-language-go -ldflags "-X github.com/pulumi/pulumi/sdk/v2/go/common/version.Version=${VERSION}" ${LANGHOST_PKG}
|
|
|
|
ci_build:: gen build_binary
|
|
|
|
install_plugin::
|
|
GOBIN=$(PULUMI_BIN) go install -ldflags "-X github.com/pulumi/pulumi/sdk/v2/go/common/version.Version=${VERSION}" ${LANGHOST_PKG}
|
|
|
|
install:: install_plugin
|
|
|
|
only_test::
|
|
go test -count=1 -cover -parallel ${TESTPARALLELISM} ${PROJECT_PKGS}
|
|
|
|
test_fast:: install only_test
|
|
|
|
test_all:: test_fast
|
|
|
|
dist::
|
|
go install -ldflags "-X github.com/pulumi/pulumi/sdk/v2/go/common/version.Version=${VERSION}" ${LANGHOST_PKG}
|
|
|
|
brew:: dist
|