mirror of
https://github.com/digarok/gsplus.git
synced 2025-02-17 11:31:11 +00:00
add CI doc for build test
This commit is contained in:
parent
3dda640f8f
commit
d07764514f
43
doc/GitlabCI-Runner-Linux.txt
Normal file
43
doc/GitlabCI-Runner-Linux.txt
Normal file
@ -0,0 +1,43 @@
|
||||
## SOME NOTES ON SETTING UP GITLAB RUNNER TO BUILD ON LINUX/UBUNTU
|
||||
# Based on: https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/blob/master/docs/install/linux-repository.md
|
||||
|
||||
|
||||
## STEP 1 - Install Gitlab Runner
|
||||
sudo apt-get install -y curl
|
||||
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.deb.sh | sudo bash
|
||||
sudo apt-get install -y gitlab-ci-multi-runner
|
||||
|
||||
|
||||
## STEP 2 - Register it with your server
|
||||
sudo gitlab-ci-multi-runner register
|
||||
# "Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/ci )"
|
||||
# https://centralserv.gotgeeks.com/ci
|
||||
#
|
||||
# "Please enter the gitlab-ci token for this runner"
|
||||
# (get token from Project->CI Settings)
|
||||
#
|
||||
# "Please enter the gitlab-ci description for this runner"
|
||||
# my-runner
|
||||
#
|
||||
# "Please enter tags for this runner"
|
||||
# ubuntu
|
||||
#
|
||||
# "Please enter the executor: shell, docker, docker-ssh, ssh?"
|
||||
# shell
|
||||
|
||||
|
||||
## STEP 3 - Make sure build user can sudo if needed for packages
|
||||
# Note: You need to do this if you get this error in your builds:
|
||||
# "sudo: no tty present and no askpass program specified"
|
||||
sudo visudo
|
||||
|
||||
# Add build user to the end of the file, like:
|
||||
dbrock ALL=(ALL) NOPASSWD: ALL
|
||||
|
||||
|
||||
|
||||
|
||||
# I use two git repos. Github for OSS hosting, and my personal Gitlab for CI.
|
||||
# If you need to add your remote gitlabci server for development.
|
||||
# git remote add gitlabci git@centralserv.gotgeeks.com:dbrock/gsplus.git
|
||||
# http://stackoverflow.com/questions/849308/pull-push-from-multiple-remote-locations
|
10
doc/GitlabCI-Runner-MacOSX.txt
Normal file
10
doc/GitlabCI-Runner-MacOSX.txt
Normal file
@ -0,0 +1,10 @@
|
||||
## SOME NOTES ON SETTING UP GITLAB RUNNER TO BUILD ON LINUX/UBUNTU
|
||||
# Based on: https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/blob/master/docs/install/osx.md
|
||||
|
||||
## STEP 1 - Install Gitlab Runner
|
||||
sudo curl --output /usr/local/bin/gitlab-ci-multi-runner https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-ci-multi-runner-darwin-amd64
|
||||
sudo chmod +x /usr/local/bin/gitlab-ci-multi-runner
|
||||
|
||||
|
||||
## STEP 2 - Register it with your server
|
||||
sudo gitlab-ci-multi-runner register
|
Loading…
x
Reference in New Issue
Block a user