Skip to content
This repository has been archived by the owner on May 12, 2018. It is now read-only.

Commit

Permalink
Merge branch 'master' of dev.gitlab.org:gitlab/gitlab-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
vsizov committed Mar 31, 2015
2 parents efd4c76 + d08de03 commit 9e8e51d
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 8 deletions.
8 changes: 6 additions & 2 deletions doc/examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ The build command is run from [GitlabCi::Build#command](https://gitlab.com/gitla
+ [Build script GitLab CE](build_script_gitlab_ce.md)
+ [Build script for Sencha deploy PhoneGapBuild](build_script_sencha_deploy_phonegapbuild.md)

# Configuring a runner example
# Configuring runner examples

+ [Configure a runner to run the GitLab CE test suite](configure_a_runner_to_run_the_gitlab_ce_test_suite.md)
+ [For Ruby](configure/ruby.md)
+ We welcome contributions of examples for other environments.

Please see [cookbook-gitlab-test](https://gitlab.com/gitlab-org/cookbook-gitlab-test/blob/master/README.md)
for instructions how to prepare a server to run CI tests for GitLab.
26 changes: 26 additions & 0 deletions doc/examples/configure/ruby.md
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
```

This file was deleted.

0 comments on commit 9e8e51d

Please sign in to comment.