From 0f9882d559fc996a260fb6e00254fd9d5f7de218 Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Fri, 19 Sep 2014 10:57:20 -0400 Subject: [PATCH] 3894: Fix sequence: do all installs, then all tests. --- jenkins/run-tests.sh | 86 ++++++++++++++++++++++---------------------- 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/jenkins/run-tests.sh b/jenkins/run-tests.sh index 44bb60392d..9fe3218f64 100755 --- a/jenkins/run-tests.sh +++ b/jenkins/run-tests.sh @@ -214,7 +214,7 @@ title () { printf "\n%*s%s\n\n" $((($COLUMNS-${#txt})/2)) "" "$txt" } -test_docs() { +install_docs() { cd "$WORKSPACE/doc" bundle install --no-deployment rm -rf .site @@ -223,20 +223,7 @@ test_docs() { PYTHONPATH=$WORKSPACE/sdk/python/ bundle exec rake generate baseurl=file://$WORKSPACE/doc/.site/ arvados_workbench_host=workbench.$ARVADOS_API_HOST arvados_api_host=$ARVADOS_API_HOST unset ARVADOS_API_HOST } -do_test docs - -test_doclinkchecker() { - cd "$WORKSPACE/doc" - bundle exec rake linkchecker baseurl=file://$WORKSPACE/doc/.site/ -} -do_test doclinkchecker - -test_ruby_sdk() { - cd "$WORKSPACE/sdk/ruby" \ - && bundle install --no-deployment \ - && bundle exec rake test -} -do_test ruby_sdk +do_install docs install_ruby_sdk() { cd "$WORKSPACE/sdk/ruby" \ @@ -252,14 +239,25 @@ install_cli() { } do_install cli -test_cli() { - title "Starting SDK CLI tests" - cd "$WORKSPACE/sdk/cli" \ - && bundle install --no-deployment \ - && mkdir -p /tmp/keep \ - && KEEP_LOCAL_STORE=/tmp/keep bundle exec rake test $cli_test +install_python_sdk() { + # Install the Python SDK early. Various other test suites (like + # keepproxy) bring up run_test_server.py, which imports the arvados + # module. We can't actually *test* the Python SDK yet though, because + # its own test suite brings up some of those other programs (like + # keepproxy). + + cd "$WORKSPACE/sdk/python" \ + && python setup.py egg_info -b ".$(git log --format=format:%ct.%h -n1 .)" sdist rotate --keep=1 --match .tar.gz \ + && pip install dist/arvados-python-client-0.1.*.tar.gz } -do_test cli +do_install python_sdk + +install_fuse() { + cd "$WORKSPACE/services/fuse" \ + && python setup.py egg_info -b ".$(git log --format=format:%ct.%h -n1 .)" sdist rotate --keep=1 --match .tar.gz \ + && pip install dist/arvados_fuse-0.1.*.tar.gz +} +do_install fuse install_apiserver() { cd "$WORKSPACE/services/api" @@ -310,12 +308,6 @@ install_apiserver() { } do_install apiserver -test_apiserver() { - cd "$WORKSPACE/services/api" - bundle exec rake test $apiserver_test -} -do_test apiserver - declare -a gostuff gostuff=( services/keepstore @@ -329,25 +321,33 @@ do do_install "$g" go done -install_python_sdk() { - # Install the Python SDK early. Various other test suites (like - # keepproxy) bring up run_test_server.py, which imports the arvados - # module. We can't actually *test* the Python SDK yet though, because - # its own test suite brings up some of those other programs (like - # keepproxy). +test_doclinkchecker() { + cd "$WORKSPACE/doc" + bundle exec rake linkchecker baseurl=file://$WORKSPACE/doc/.site/ +} +do_test doclinkchecker - cd "$WORKSPACE/sdk/python" \ - && python setup.py egg_info -b ".$(git log --format=format:%ct.%h -n1 .)" sdist rotate --keep=1 --match .tar.gz \ - && pip install dist/arvados-python-client-0.1.*.tar.gz +test_ruby_sdk() { + cd "$WORKSPACE/sdk/ruby" \ + && bundle install --no-deployment \ + && bundle exec rake test } -do_install python_sdk +do_test ruby_sdk -install_fuse() { - cd "$WORKSPACE/services/fuse" \ - && python setup.py egg_info -b ".$(git log --format=format:%ct.%h -n1 .)" sdist rotate --keep=1 --match .tar.gz \ - && pip install dist/arvados_fuse-0.1.*.tar.gz +test_cli() { + title "Starting SDK CLI tests" + cd "$WORKSPACE/sdk/cli" \ + && bundle install --no-deployment \ + && mkdir -p /tmp/keep \ + && KEEP_LOCAL_STORE=/tmp/keep bundle exec rake test $cli_test } -do_install fuse +do_test cli + +test_apiserver() { + cd "$WORKSPACE/services/api" + bundle exec rake test $apiserver_test +} +do_test apiserver test_python_sdk() { # Python SDK. We test this before testing keepproxy: keepproxy runs -- 2.30.2