From 67341a5d3f44a8eec309e7d24db2610e82a879c3 Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.anjos@idiap.ch>
Date: Wed, 21 Dec 2016 15:36:20 +0100
Subject: [PATCH] Allow packages with metafiles that do not include them in the
 python package to test ok

---
 gitlab/before_test.sh | 5 +++++
 gitlab/build.sh       | 0
 2 files changed, 5 insertions(+)
 mode change 100644 => 100755 gitlab/build.sh

diff --git a/gitlab/before_test.sh b/gitlab/before_test.sh
index 3709c10..93033b2 100755
--- a/gitlab/before_test.sh
+++ b/gitlab/before_test.sh
@@ -24,3 +24,8 @@ if [ "${CI_PROJECT_NAME}" == "bob.buildout" ]; then
 fi
 
 run_cmd ${use_pip} install --upgrade --use-wheel --no-index --pre dist/*.whl
+
+# Downloads databases that may be missing (not shipped with python pkg)
+if [ -x ./bin/bob_dbmanage.py ]; then
+  run_cmd ./bin/bob_dbmanage.py all download --missing;
+fi
diff --git a/gitlab/build.sh b/gitlab/build.sh
old mode 100644
new mode 100755
-- 
GitLab