Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.devtools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Show more breadcrumbs
bob
bob.devtools
Commits
a459e4e3
Commit
a459e4e3
authored
3 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[doc/macos] Improve update-ci script [skip ci]
parent
775035f2
No related branches found
No related tags found
No related merge requests found
Pipeline
#56482
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/macos-ci-install/update-ci.sh
+18
-1
18 additions, 1 deletion
doc/macos-ci-install/update-ci.sh
with
18 additions
and
1 deletion
doc/macos-ci-install/update-ci.sh
+
18
−
1
View file @
a459e4e3
#!/usr/bin/env bash
# Update CI installation
echo
"Updating homebrew..."
echo
"
[update-ci]
Updating homebrew..."
brew
=
/usr/local/bin/brew
pip
=
/usr/local/bin/pip3
if
[
!
-x
${
brew
}
]
;
then
...
...
@@ -9,6 +9,15 @@ if [ ! -x ${brew} ]; then
pip
=
/opt/homebrew/bin/pip3
fi
${
brew
}
update
# We now check if gitlab-runner is going to be updated
gitlab_runner_reconfigure
=
false
if
[[
$(
brew outdated |
grep
-c
"gitlab-runner"
)
!=
0
]]
;
then
echo
"[update-ci] The package gitlab-runner is going to be updated (will reconfigure)"
gitlab_runner_reconfigure
=
true
fi
echo
"[update-ci] Upgrading homebrew (outdated) packages..."
${
brew
}
upgrade
# A cask upgrade may require sudo, so we cannot do this
...
...
@@ -16,6 +25,7 @@ ${brew} upgrade
#echo "Updating homebrew casks..."
#${brew} cask upgrade
echo
"[update-ci] Cleaning-up homebrew..."
${
brew
}
cleanup
# Updates PIP packages installed
...
...
@@ -26,3 +36,10 @@ function pipupdate() {
}
pipupdate
${
pip
}
# If gitlab-runner was updated, re-configures it
if
[[
"
${
gitlab_runner_reconfigure
}
"
==
"true"
]]
;
then
echo
"[update-ci] Reconfiguring gitlab-runner..."
/bin/bash <
(
curl
-s
https://gitlab.idiap.ch/bob/bob.devtools/raw/master/doc/macos-ci-install/reconfig-gitlab-runner.sh
)
echo
"[update-ci] The gitlab-runner daemon should be fully operational now."
fi
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