Skip to content
Snippets Groups Projects
Commit 6ab63ddc authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Parameterize before_deploy to get non-sqlite databases download right (see bob.db.base#11)

parent 5765a7ab
No related branches found
No related tags found
Loading
#!/usr/bin/env bash #!/usr/bin/env bash
# Wed 21 Sep 2016 13:08:05 CEST # Wed 21 Sep 2016 13:08:05 CEST
# Parameters:
#
# $1: database name to run the download command for. If unset, use "all"
#
source $(dirname ${0})/functions.sh source $(dirname ${0})/functions.sh
run_cmd $(dirname ${0})/before_test.sh run_cmd $(dirname ${0})/before_test.sh
dbname=${1:-all}
# setup database locally and run `bob_dbmanage.py all download` # setup database locally and run `bob_dbmanage.py all download`
# if this is a database package - need auxiliary file for package # if this is a database package - need auxiliary file for package
if [[ ${CI_PROJECT_NAME} == bob.db.* ]]; then if [[ ${CI_PROJECT_NAME} == bob.db.* ]]; then
run_cmd ./bin/buildout run_cmd ./bin/buildout
if [ -x ./bin/bob_dbmanage.py ]; then if [ -x ./bin/bob_dbmanage.py ]; then
run_cmd ./bin/bob_dbmanage.py all download --force; run_cmd ./bin/bob_dbmanage.py ${dbname} download --force;
fi fi
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment