projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
18713: Merge branch 'main' into 18713-nvidia-persistenced
[arvados.git]
/
build
/
run-tests.sh
diff --git
a/build/run-tests.sh
b/build/run-tests.sh
index d6dc43416a5bc8bf8e3aab56c0a5df78c2e759e5..9cd38784b96ec9ad2949da343950f5d5e9961597 100755
(executable)
--- a/
build/run-tests.sh
+++ b/
build/run-tests.sh
@@
-3,8
+3,6
@@
#
# SPDX-License-Identifier: AGPL-3.0
#
# SPDX-License-Identifier: AGPL-3.0
-. `dirname "$(readlink -f "$0")"`/libcloud-pin.sh
-
COLUMNS=80
. `dirname "$(readlink -f "$0")"`/run-library.sh
COLUMNS=80
. `dirname "$(readlink -f "$0")"`/run-library.sh
@@
-517,10
+515,10
@@
setup_ruby_environment() {
|| fatal 'rvm gemset setup'
rvm env
|| fatal 'rvm gemset setup'
rvm env
- (bundle version | grep -q 2.
0.2) || gem install bundler -v 2.0.2
+ (bundle version | grep -q 2.
2.19) || gem install --no-document bundler -v 2.2.19
bundle="$(which bundle)"
echo "$bundle"
bundle="$(which bundle)"
echo "$bundle"
- "$bundle" version | grep 2.
0.2
|| fatal 'install bundler'
+ "$bundle" version | grep 2.
2.19
|| fatal 'install bundler'
else
# When our "bundle install"s need to install new gems to
# satisfy dependencies, we want them to go where "gem install
else
# When our "bundle install"s need to install new gems to
# satisfy dependencies, we want them to go where "gem install
@@
-550,10
+548,10
@@
setup_ruby_environment() {
(
export HOME=$GEMHOME
bundlers="$(gem list --details bundler)"
(
export HOME=$GEMHOME
bundlers="$(gem list --details bundler)"
- versions=(
1.16.6 1.17.3 2.0.2
)
+ versions=(
2.2.19
)
for v in ${versions[@]}; do
if ! echo "$bundlers" | fgrep -q "($v)"; then
for v in ${versions[@]}; do
if ! echo "$bundlers" | fgrep -q "($v)"; then
- gem install --user $(for v in ${versions[@]}; do echo bundler:${v}; done)
+ gem install --
no-document --
user $(for v in ${versions[@]}; do echo bundler:${v}; done)
break
fi
done
break
fi
done
@@
-644,7
+642,7
@@
initialize() {
install_env() {
go mod download || fatal "Go deps failed"
install_env() {
go mod download || fatal "Go deps failed"
- which goimports >/dev/null || go
get golang.org/x/tools/cmd/goimports
|| fatal "Go setup failed"
+ which goimports >/dev/null || go
install golang.org/x/tools/cmd/goimports@latest
|| fatal "Go setup failed"
setup_virtualenv "$VENV3DIR"
. "$VENV3DIR/bin/activate"
setup_virtualenv "$VENV3DIR"
. "$VENV3DIR/bin/activate"
@@
-1082,9
+1080,7
@@
install_deps() {
do_install services/api
do_install services/arv-git-httpd go
do_install services/keepproxy go
do_install services/api
do_install services/arv-git-httpd go
do_install services/keepproxy go
- do_install services/keepstore go
do_install services/keep-web go
do_install services/keep-web go
- do_install services/ws go
}
install_all() {
}
install_all() {
@@
-1147,6
+1143,14
@@
test_all() {
do_test apps/workbench_profile
}
do_test apps/workbench_profile
}
+test_go() {
+ do_test gofmt
+ for g in "${gostuff[@]}"
+ do
+ do_test "$g" go
+ done
+}
+
help_interactive() {
echo "== Interactive commands:"
echo "TARGET (short for 'test DIR')"
help_interactive() {
echo "== Interactive commands:"
echo "TARGET (short for 'test DIR')"