Skip to content

Commit 21a4782

Browse files
committed
dev: update test-gem-build to support a release flag
to be compatible with the new release pipeline being tested in #690
1 parent e1c65b1 commit 21a4782

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

bin/test-gem-build

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
#! /usr/bin/env bash
22
#
3-
# run as part of CI
3+
# run as part of CI, or as part of the release pipeline with --release
44
#
5+
RELEASE=false
6+
if [[ "${1:-}" == "--release" ]] ; then
7+
RELEASE=true
8+
shift
9+
fi
10+
511
if [[ $# -lt 2 ]] ; then
6-
echo "usage: $(basename $0) <output_dir> <platform>"
12+
echo "usage: $(basename $0) [--release] <output_dir> <platform>"
713
exit 1
814
fi
915

@@ -18,7 +24,10 @@ set -x
1824

1925
bundle config set without development
2026
bundle install --local || bundle install
21-
bundle exec rake set-version-to-timestamp
27+
28+
if [[ "${RELEASE}" == "false" ]] ; then
29+
bundle exec rake set-version-to-timestamp
30+
fi
2231

2332
if [[ "${BUILD_NATIVE_GEM}" == "ruby" ]] ; then
2433
bundle exec ruby ext/sqlite3/extconf.rb --download-dependencies

0 commit comments

Comments
 (0)