From d3d1bc065b03113c6f6e44d980f26c734948f347 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Wed, 7 Aug 2019 21:06:54 +0000 Subject: Only do smoke test during release --- Makefile | 4 ++++ _support/makegen.go | 3 +++ _support/release | 3 +-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 341b5eaf0..037bd905e 100644 --- a/Makefile +++ b/Makefile @@ -96,6 +96,10 @@ proto: prepare-build no-changes: prepare-build cd $(BUILD_DIR) && $(MAKE) $@ +.PHONY: smoke-test +smoke-test: prepare-build + cd $(BUILD_DIR) && $(MAKE) $@ + .PHONY: prepare-build prepare-build: $(BUILD_DIR)/.ok update-makefile $(BUILD_DIR)/.ok: diff --git a/_support/makegen.go b/_support/makegen.go index d9149a6aa..91f1814ff 100644 --- a/_support/makegen.go +++ b/_support/makegen.go @@ -586,4 +586,7 @@ proto: {{ .ProtoC }} {{ .ProtoCGenGo }} {{ .ProtoCGenGitaly }} {{ .GrpcToolsRuby no-changes: # looking for changed files @cd {{ .SourceDir }} && git status --porcelain | awk '{ print } END { if (NR > 0) { exit 1 } }' + +smoke-test: all rspec + @cd {{ .SourceDir }} && go test ./internal/rubyserver ` diff --git a/_support/release b/_support/release index cee8f46d3..9b9c145c0 100755 --- a/_support/release +++ b/_support/release @@ -9,8 +9,7 @@ def main(version) abort "Version string #{version.inspect} does not look like a semver (e.g. \"1.0.2\"). Aborting." end - run!(%w[make verify]) - run!(%w[make clean test]) + run!(%w[make verify smoke-test]) puts 'Testing for changed files' run!(%w[git diff --quiet --exit-code]) -- cgit v1.2.3