This change adds a new manifest section to the checkpoint files. The existing time moves into it, and we add to it the version of the Pulumi CLI that created it, along with the names, types, and versions of all plugins used to generate the file. There is a magic cookie that we also use during verification. This is to help keep us sane when debugging problems "in the wild," and I'm sure we will add more to it over time (checksum, etc). For example, after an up, you can now see this in `pulumi stack`: ``` Current stack is demo: Last updated at 2017-12-01 13:48:49.815740523 -0800 PST Pulumi version v0.8.3-79-g1ab99ad Plugin pulumi-provider-aws [resource] version v0.8.3-22-g4363e77 Plugin pulumi-langhost-nodejs [language] version v0.8.3-79-g77bb6b6 Checkpoint file is /Users/joeduffy/dev/code/src/github.com/pulumi/pulumi-aws/.pulumi/stacks/webserver/demo.json ``` This addresses pulumi/pulumi#628.
38 lines
1.1 KiB
Makefile
38 lines
1.1 KiB
Makefile
PROJECT_NAME := Pulumi Node.JS SDK
|
|
NODE_MODULE_NAME := pulumi
|
|
VERSION := $(shell git describe --tags --dirty 2>/dev/null)
|
|
|
|
include ../../build/common.mk
|
|
|
|
export PATH:=$(shell yarn bin 2>/dev/null):$(PATH)
|
|
|
|
ensure::
|
|
cd runtime/native && ./ensure_node_v8.sh
|
|
|
|
lint::
|
|
tslint -c tslint.json -p tsconfig.json
|
|
|
|
build::
|
|
cd runtime/native && node-gyp configure
|
|
cp -R ../proto/nodejs/. proto/
|
|
cd runtime/native/ && node-gyp build
|
|
tsc
|
|
cp package.json bin/
|
|
sed -i.bak "s/\$${VERSION}/$(VERSION)/g" bin/version.js bin/package.json && \
|
|
rm bin/version.js.bak && \
|
|
rm bin/package.json.bak
|
|
cp -R proto/. bin/proto/
|
|
mkdir -p bin/runtime/native/
|
|
cp -R runtime/native/build/. bin/runtime/native/build/
|
|
mkdir -p bin/tests/runtime/langhost/cases/
|
|
find tests/runtime/langhost/cases/* -type d -exec cp -R {} bin/tests/runtime/langhost/cases/ \;
|
|
|
|
install::
|
|
cp pulumi-langhost-nodejs "$(PULUMI_BIN)"
|
|
cp pulumi-provider-pulumi-nodejs "$(PULUMI_BIN)"
|
|
rm -rf "$(PULUMI_NODE_MODULES)/$(NODE_MODULE_NAME)/tests"
|
|
|
|
test_fast::
|
|
istanbul cover --print none _mocha -- --timeout 15000 'bin/tests/**/*.spec.js'
|
|
istanbul report text-summary
|
|
istanbul report text
|