From 1ab0354566754b6a76b2e8a266365d2f1f5c6606 Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Mon, 28 Oct 2019 18:16:36 -0400 Subject: [PATCH] Pin minitest to a version to sidestep problem on master Introduce `repository-tag` which uses `git clone --branch` to clone a specific tag in the repo. --- .shopify-build/gems/minitest.sh | 2 +- .shopify-build/test-gem.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.shopify-build/gems/minitest.sh b/.shopify-build/gems/minitest.sh index 822a53c8e21f..30a4284822ae 100644 --- a/.shopify-build/gems/minitest.sh +++ b/.shopify-build/gems/minitest.sh @@ -1,4 +1,4 @@ -repository git@github.com:seattlerb/minitest.git +repository-tag git@github.com:seattlerb/minitest.git v5.12.2 gem install hoe rake test diff --git a/.shopify-build/test-gem.sh b/.shopify-build/test-gem.sh index 5894efdb68a6..541ad53d1dc7 100755 --- a/.shopify-build/test-gem.sh +++ b/.shopify-build/test-gem.sh @@ -22,6 +22,11 @@ repository() { pushd "${2-repo}" } +repository-tag() { + git clone --depth 1 --branch "${2}" "${1}" "${3-repo}" + pushd "${3-repo}" +} + full-repository() { git clone --single-branch "${1}" "${2-repo}" pushd "${2-repo}"