Skip to content
Snippets Groups Projects

Undoes download param

Merged André Anjos requested to merge undo_download_param into master
2 files
+ 3
17
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 1
8
#!/usr/bin/env bash
# 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
run_cmd $(dirname ${0})/before_test.sh
dbname=${1:-all}
# 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 ${dbname} download --force;
run_cmd ./bin/bob_dbmanage.py all download --force;
fi
fi
Loading