remove reference to ./cmd/... in build scripts
This commit is contained in:
parent
fba783caf9
commit
50c72e194c
2
Makefile
2
Makefile
|
@ -3,7 +3,7 @@ SUB_PROJECTS := sdk/dotnet sdk/nodejs sdk/python sdk/go
|
|||
include build/common.mk
|
||||
|
||||
PROJECT := github.com/pulumi/pulumi
|
||||
PROJECT_PKGS := $(shell go list ./cmd/... ./pkg/... | grep -v /vendor/)
|
||||
PROJECT_PKGS := $(shell go list ./pkg/... | grep -v /vendor/)
|
||||
EXTRA_TEST_PKGS := $(shell go list ./examples/ ./tests/... | grep -v tests/templates | grep -v /vendor/)
|
||||
VERSION := $(shell scripts/get-version HEAD)
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
set -o errexit
|
||||
|
||||
export PKGS='./pkg/... ./cmd/...'
|
||||
export PKGS_COMMA='./pkg/...,./cmd/...'
|
||||
export PKGS='./pkg/...'
|
||||
export PKGS_COMMA='./pkg/...'
|
||||
|
||||
go test -count=1 -i ${PKGS}
|
||||
go list -f '{{if gt (len .TestGoFiles) 0}}"go test -count=1 -covermode count -coverprofile {{.Name}}.coverprofile -coverpkg $PKGS_COMMA {{.ImportPath}}"{{end}}' $PKGS | xargs -P100 -I {} bash -c {} 2>&1 | grep -v '^warning: no packages being tested depend on '
|
||||
|
|
Loading…
Reference in a new issue