Skip to content

Commit b40475a

Browse files
authored
Merge pull request #615 from github/add-middle-version
Remove loop of testing against older versions
2 parents 18d130c + 6a67f07 commit b40475a

File tree

2 files changed

+3
-24
lines changed

2 files changed

+3
-24
lines changed

script/cibuild

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,12 @@
22
# Usage: script/cibuild [--no-package]
33
set -e
44

5-
# GHE appliance versions to run tests against. Remote metadata files are put in
6-
# place with this version at the beginning of each test and many commands have
7-
# conditional logic based on the remote version. Running the suite against
8-
# different major versions ensures we're covering these conditional paths.
9-
REMOTE_VERSIONS="2.19.0 2.21.0"
10-
115
# Enable verbose logging of ssh commands
126
export GHE_VERBOSE_SSH=true
137

14-
# Run over all remote versions and run entire test suite against each
15-
res=true
16-
for version in $REMOTE_VERSIONS
17-
do
18-
echo "==> Running testsuite with GHE_TEST_REMOTE_VERSION=$version"
19-
export GHE_TEST_REMOTE_VERSION="$version"
20-
if ! find test -name "test-*.sh" -print0 | xargs -0 -P 4 -n 1 /bin/bash; then
21-
res=false
22-
fi
23-
echo
24-
done
25-
26-
# If any of the version tests failed, exit non-zero
27-
$res
8+
if ! find test -name "test-*.sh" -print0 | xargs -0 -P 4 -n 1 /bin/bash; then
9+
exit 1
10+
fi
2811

2912
# Bail out when --no-package given
3013
[ "$1" = "--no-package" ] && exit 0

script/release

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,6 @@ def bump_version(new_version, min_version = nil, path = 'share/github-backup-uti
210210
content = File.read('test/testlib.sh')
211211
new_content = content.gsub(/GHE_TEST_REMOTE_VERSION:=[0-9]\.[0-9]+\.0/,"GHE_TEST_REMOTE_VERSION:=#{new_version}")
212212
File.open('test/testlib.sh', 'w') {|file| file.puts new_content }
213-
214-
content = File.read('script/cibuild')
215-
new_content = content.gsub(/^REMOTE_VERSIONS=.*$/, "REMOTE_VERSIONS=\"#{min_version} #{new_version}\"")
216-
File.open('script/cibuild', 'w') {|file| file.puts new_content }
217213
end
218214
end
219215

0 commit comments

Comments
 (0)