Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GILLES Sebastien
MoReFEM
Commits
6ac57dc3
Commit
6ac57dc3
authored
Apr 12, 2019
by
GILLES Sebastien
Browse files
#1406 Add documentation about set up of a macOS runner.
parent
2a1a93b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Documentation/ContinuousIntegration/Internal/SetUpmacOSVM.md
0 → 100644
View file @
6ac57dc3
<!-- toc -->
# Install Miniconda environment
````
curl -O https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
bash Miniconda3-latest-MacOSX-x86_64.sh
conda update conda
conda create -n Python3 python=3
conda activate Python3
conda install six
python -m pip install distro
````
# Install third party libraries
````
git clone https://gitlab.inria.fr/MoReFEM/ThirdPartyCompilationFactory.git
````
Edit morefem_macos_clang.py:
````
target_directory = "/Volumes/Data/ci/opt/clang_{}".format(mode)
python = "/Users/ci/miniconda3/bin/python"
````
In Conda environment Python3:
````
python morefem_macos_clang.py
````
# Install gitlab-runner
## As an administrator:
````
sudo curl --output /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-darwin-amd64
sudo chmod +x /usr/local/bin/gitlab-runner
````
## As CI user:
````
gitlab-runner register
````
Then choose:
-
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):
Copy/paste password the choice on .
-
Please enter the gitlab-ci token for this runner:
The token given in Runner page (see image above).
-
Please enter the gitlab-ci description for this runner:
You may just repeat the name of the machine... or really put whatever you want (you may change it afterwards anyway).
-
Please enter the gitlab-ci tags for this runner (comma separated):
Put the tags for the runner you want to set up, e.g. "macos,debug,shared"
-
Please enter the executor:
Choose _shell_.
The runner should now appear in gitlab, but possibly with a grey dot instead of a green one. In this case, type:
````
gitlab-runner --debug run
````
which should make the dot green within a minute.
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment