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

Support alternative branch download for tests

parent 37152e0c
No related branches found
No related tags found
1 merge request!42Staging
......@@ -4,11 +4,18 @@
# Installation script for our build tools
if [ "${#}" -ne 1 ]; then
echo "usage: ${0} <ci-support-directory>"
echo "usage: ${0} <ci-support-directory> [<branch>]"
echo "example: ${0} _ci"
echo "example: ${0} _ci staging"
exit 1
fi
if [ -n "$2" ]; then
BRANCH=$2;
else
BRANCH=master;
fi
# Functions for coloring echo commands
log_info() {
......@@ -34,7 +41,7 @@ run_cmd() {
get_script() {
local url="https://gitlab.idiap.ch/bob/bob.admin/raw/master/gitlab/${2}"
local url="https://gitlab.idiap.ch/bob/bob.admin/raw/${BRANCH}/gitlab/${2}"
local curlopt="--location --silent --show-error --output ${1}/${2}"
if [ -e ${1}/${2} ]; then
rm -f ${1}/${2}
......
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