[ARVADOS-DEV] updated: f6c53e0e14c29950c6b29f2b3c6a46c13071fbd2
git at public.curoverse.com
git at public.curoverse.com
Thu Feb 5 16:59:09 EST 2015
Summary of changes:
jenkins/run-tests.sh | 32 +++++++++++++++++---------------
1 file changed, 17 insertions(+), 15 deletions(-)
via f6c53e0e14c29950c6b29f2b3c6a46c13071fbd2 (commit)
from a526319c2a822c1a2b06b09d734fa3da6f84ec31 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit f6c53e0e14c29950c6b29f2b3c6a46c13071fbd2
Author: Tom Clegg <tom at curoverse.com>
Date: Thu Feb 5 16:58:33 2015 -0500
3021: Print reassuring messages about expected warning messages during "bundle install --local".
diff --git a/jenkins/run-tests.sh b/jenkins/run-tests.sh
index 07f5cdd..e9ed493 100755
--- a/jenkins/run-tests.sh
+++ b/jenkins/run-tests.sh
@@ -413,11 +413,21 @@ title () {
printf "\n%*s%s\n\n" $((($COLUMNS-${#txt})/2)) "" "$txt"
}
+bundle_install_trylocal() {
+ (
+ set -e
+ echo "(Running bundle install --local. 'could not find package' messages are OK.)"
+ if ! bundle install --local --no-deployment; then
+ echo "(Running bundle install again, without --local.)"
+ bundle install --no-deployment
+ fi
+ bundle package --all
+ )
+}
+
install_doc() {
cd "$WORKSPACE/doc" \
- && (bundle install --local --no-deployment \
- || bundle install --no-deployment) \
- && bundle package --all \
+ && bundle_install_trylocal \
&& rm -rf .site
}
do_install doc
@@ -425,9 +435,7 @@ do_install doc
install_ruby_sdk() {
with_test_gemset gem uninstall --force --all --executables arvados \
&& cd "$WORKSPACE/sdk/ruby" \
- && (bundle install --local --no-deployment \
- || bundle install --no-deployment) \
- && bundle package --all \
+ && bundle_install_trylocal \
&& gem build arvados.gemspec \
&& with_test_gemset gem install --no-ri --no-rdoc `ls -t arvados-*.gem|head -n1`
}
@@ -436,9 +444,7 @@ do_install sdk/ruby ruby_sdk
install_cli() {
with_test_gemset gem uninstall --force --all --executables arvados-cli \
&& cd "$WORKSPACE/sdk/cli" \
- && (bundle install --local --no-deployment \
- || bundle install --no-deployment) \
- && bundle package --all \
+ && bundle_install_trylocal \
&& gem build arvados-cli.gemspec \
&& with_test_gemset gem install --no-ri --no-rdoc `ls -t arvados-cli-*.gem|head -n1`
}
@@ -462,9 +468,7 @@ done
install_apiserver() {
cd "$WORKSPACE/services/api" \
- && (RAILS_ENV=test bundle install --local --no-deployment \
- || RAILS_ENV=test bundle install --no-deployment) \
- && bundle package --all
+ && RAILS_ENV=test bundle_install_trylocal
rm -f config/environments/test.rb
cp config/environments/test.rb.example config/environments/test.rb
@@ -525,9 +529,7 @@ done
install_workbench() {
cd "$WORKSPACE/apps/workbench" \
- && (RAILS_ENV=test bundle install --local --no-deployment \
- || RAILS_ENV=test bundle install --no-deployment) \
- && bundle package --all
+ && RAILS_ENV=test bundle_install_trylocal
}
do_install apps/workbench workbench
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list