From a97b82b835d0dabb6bcef15095aef082733e934a Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.anjos@idiap.ch> Date: Thu, 20 Oct 2016 14:53:42 +0200 Subject: [PATCH] If package starts with bob.db, then download auxiliary files before shipping it --- gitlab/before_deploy.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gitlab/before_deploy.sh b/gitlab/before_deploy.sh index 25fc0ba..cac8108 100755 --- a/gitlab/before_deploy.sh +++ b/gitlab/before_deploy.sh @@ -4,3 +4,12 @@ source $(dirname ${0})/functions.sh run_cmd $(dirname ${0})/before_test.sh + +# setup database locally and run `bob_dbmanage.py all download` +# if this is a database package - need auxiliary file for package +if [[ ${CI_PROJECT_NAME} == bob.db.* ]]; then + run_cmd ./bin/buildout + if [ -x ./bin/bob_dbmanage.py ]; then + run_cmd ./bin/bob_dbmanage.py all download --force; + fi +fi -- GitLab