diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2019-08-08 00:06:54 +0300 |
---|---|---|
committer | John Cai <jcai@gitlab.com> | 2019-08-08 00:06:54 +0300 |
commit | d3d1bc065b03113c6f6e44d980f26c734948f347 (patch) | |
tree | 4ee0c78fc44e76fe87a24cddedb7a5b2d9e59e2f | |
parent | 286e16e2963d42d36a3d55265052589b0a450de6 (diff) |
Only do smoke test during release
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | _support/makegen.go | 3 | ||||
-rwxr-xr-x | _support/release | 3 |
3 files changed, 8 insertions, 2 deletions
@@ -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]) |