This repository has been archived by the owner on May 12, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of dev.gitlab.org:gitlab/gitlab-ci
- Loading branch information
Showing
3 changed files
with
32 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Example configuring runner for Ruby | ||
|
||
In this example, we configure ruby and mysql for testing environment: | ||
|
||
``` | ||
# as root | ||
( | ||
set -e | ||
apt-get update | ||
apt-get upgrade -y | ||
apt-get install -y curl | ||
cd /root | ||
rm -rf cookbooks cookbook-gitlab-test.git | ||
curl 'https://gitlab.com/gitlab-org/cookbook-gitlab-test/repository/archive.tar.gz?ref=master' | tar -xvz | ||
mkdir cookbooks | ||
mv cookbook-gitlab-test.git cookbooks/cookbook-gitlab-test | ||
curl -L https://www.chef.io/chef/install.sh | bash | ||
chef-client -z -r 'recipe[cookbook-gitlab-test::ruby], recipe[cookbook-gitlab-test::mysql]' | ||
) | ||
### Register your runner instance with a GitLab CI Coordinator | ||
sudo /opt/gitlab-runner/bin/setup -C /home/gitlab-runner | ||
# Restart the gitlab-runner Upstart script | ||
sudo service gitlab-runner restart | ||
``` |
6 changes: 0 additions & 6 deletions
6
doc/examples/configure_a_runner_to_run_the_gitlab_ce_test_suite.md
This file was deleted.
Oops, something went wrong.