[ARVADOS] updated: 1.1.3-129-g64f2f4f
Git user
git at public.curoverse.com
Fri Mar 2 19:42:28 EST 2018
Summary of changes:
build/run-tests.sh | 53 +++++++++++++++++++++++++++++++++++++++--------------
1 file changed, 39 insertions(+), 14 deletions(-)
via 64f2f4f50d0096e00e59791cd729bcc14be4aa08 (commit)
from 2bb38adc748cdd792fedb0d89ff70540703c2220 (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 64f2f4f50d0096e00e59791cd729bcc14be4aa08
Author: Ward Vandewege <wvandewege at veritasgenetics.com>
Date: Fri Mar 2 19:40:40 2018 -0500
Stop running sdk/R install if sdk/R is not being tested. It is
really expensive on a clean install (~6 minutes).
No issue #
Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <wvandewege at veritasgenetics.com>
diff --git a/build/run-tests.sh b/build/run-tests.sh
index 48b3eab..dd31493 100755
--- a/build/run-tests.sh
+++ b/build/run-tests.sh
@@ -243,15 +243,17 @@ sanity_checks() {
echo -n 'graphviz: '
dot -V || fatal "No graphviz. Try: apt-get install graphviz"
- # R SDK stuff
- echo -n 'R: '
- which R || fatal "No R. Try: apt-get install r-base"
- echo -n 'testthat: '
- R -q -e "library('testthat')" || fatal "No testthat. Try: apt-get install r-cran-testthat"
- # needed for roxygen2, needed for devtools, needed for R sdk
- pkg-config --exists libxml-2.0 || fatal "No libxml2. Try: apt-get install libxml2-dev"
- # needed for pkgdown, builds R SDK doc pages
- which pandoc || fatal "No pandoc. Try: apt-get install pandoc"
+ if [[ "$NEED_SDK_R" = true ]]; then
+ # R SDK stuff
+ echo -n 'R: '
+ which R || fatal "No R. Try: apt-get install r-base"
+ echo -n 'testthat: '
+ R -q -e "library('testthat')" || fatal "No testthat. Try: apt-get install r-cran-testthat"
+ # needed for roxygen2, needed for devtools, needed for R sdk
+ pkg-config --exists libxml-2.0 || fatal "No libxml2. Try: apt-get install libxml2-dev"
+ # needed for pkgdown, builds R SDK doc pages
+ which pandoc || fatal "No pandoc. Try: apt-get install pandoc"
+ fi
}
rotate_logfile() {
@@ -321,6 +323,18 @@ do
esac
done
+# R SDK installation is very slow (~360s in a clean environment) and only
+# required when testing it. Skip that step if it is not needed.
+NEED_SDK_R=true
+
+if [[ ! -z "${only}" && "${only}" != "sdk/R" ]]; then
+ NEED_SDK_R=false
+fi
+
+if [[ ! -z "${skip}" && "${skip}" == "sdk/R" ]]; then
+ NEED_SDK_R=false
+fi
+
start_services() {
echo 'Starting API, keepproxy, keep-web, ws, arv-git-httpd, and nginx ssl proxy...'
if [[ ! -d "$WORKSPACE/services/api/log" ]]; then
@@ -701,11 +715,17 @@ do_test_once() {
}
do_install() {
- if [[ -z "${only_install}" || "${only_install}" == "${1}" ]]; then
- retry do_install_once ${@}
- else
- title "Skipping $1 install"
- fi
+ skipit=false
+
+ if [[ -z "${only_install}" || "${only_install}" == "${1}" ]]; then
+ retry do_install_once ${@}
+ else
+ skipit=true
+ fi
+
+ if [[ "$skipit" = true ]]; then
+ title "Skipping $1 install"
+ fi
}
do_install_once() {
@@ -780,8 +800,10 @@ install_ruby_sdk() {
do_install sdk/ruby ruby_sdk
install_R_sdk() {
+ if [[ "$NEED_SDK_R" = true ]]; then
cd "$WORKSPACE/sdk/R" \
&& R --quiet --vanilla --file=install_deps.R
+ fi
}
do_install sdk/R R_sdk
@@ -957,9 +979,12 @@ test_ruby_sdk() {
do_test sdk/ruby ruby_sdk
test_R_sdk() {
+ if [[ "$NEED_SDK_R" = true ]]; then
cd "$WORKSPACE/sdk/R" \
&& R --quiet --file=run_test.R
+ fi
}
+
do_test sdk/R R_sdk
test_cli() {
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list