Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.admin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
bob
bob.admin
Commits
a966de13
Commit
a966de13
authored
8 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
Support alternative branch download for tests
parent
37152e0c
No related branches found
Branches containing commit
No related tags found
1 merge request
!42
Staging
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gitlab/install.sh
+9
-2
9 additions, 2 deletions
gitlab/install.sh
with
9 additions
and
2 deletions
gitlab/install.sh
+
9
−
2
View file @
a966de13
...
...
@@ -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
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment