-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathMakefile
24 lines (19 loc) · 803 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
PROJECT_NAME := Terraform -> Pulumi converter
include build/common.mk
VERSION := $(shell scripts/get-version)
# NOTE: Since the plugin is published using the nodejs style semver version
# We set the PLUGIN_VERSION to be the same as the version we use when building
# the provider (e.g. x.y.z-dev-... instead of x.y.zdev...)
build::
go install -ldflags "-X github.com/pulumi/tf2pulumi/version.Version=${VERSION}" github.com/pulumi/tf2pulumi
lint::
golangci-lint run
test_all::
PATH=$(PULUMI_BIN):$(PATH) go test -v -cover ./il/... ./gen/...
PATH=$(PULUMI_BIN):$(PATH) go test -v -cover -timeout 1h ./tests/...
# The travis_* targets are entrypoints for CI.
.PHONY: travis_cron travis_push travis_pull_request travis_api
travis_cron: all
travis_push: all
travis_pull_request: all
travis_api: all