Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2019-08-08 00:06:54 +0300
committerJohn Cai <jcai@gitlab.com>2019-08-08 00:06:54 +0300
commitd3d1bc065b03113c6f6e44d980f26c734948f347 (patch)
tree4ee0c78fc44e76fe87a24cddedb7a5b2d9e59e2f
parent286e16e2963d42d36a3d55265052589b0a450de6 (diff)
Only do smoke test during release
-rw-r--r--Makefile4
-rw-r--r--_support/makegen.go3
-rwxr-xr-x_support/release3
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])