diff options
author | Sytse Sijbrandij <sytse@gitlab.com> | 2015-02-16 09:38:00 -0800 |
---|---|---|
committer | Sytse Sijbrandij <sytse@gitlab.com> | 2015-02-16 09:38:00 -0800 |
commit | 5cbf02ffb8a15d2d08685f901d47e3415b721d79 (patch) | |
tree | 54d7c1032cb70d054f8e12a2efc5fdb6522be029 /doc/examples | |
parent | 3149ef6dc85d57ceb523723b49db3560275003a9 (diff) | |
download | gitlab-ci-5cbf02ffb8a15d2d08685f901d47e3415b721d79.tar.gz |
Move build script examples to something that is linked from the interface and the webpage.
Diffstat (limited to 'doc/examples')
-rw-r--r-- | doc/examples/README.md | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/examples/README.md b/doc/examples/README.md index db1a62e..a33a19a 100644 --- a/doc/examples/README.md +++ b/doc/examples/README.md @@ -1,4 +1,30 @@ + +# How you build script is run + +The runner runs the line below before it runs the commands in your build script: + + cd /gitlab-ci-runner/tmp/builds && git clone git@gitlab_server_fqdn:group/project.git project-1 && cd project-1 && git checkout master + +# Build script example + + bundle install + bundle exec rake db:create RAILS_ENV=test + bundle exec rake db:migrate RAILS_ENV=test + script/run_all_tests + +# Environmental variables + +The build command is run from [GitlabCi::Build#command](https://gitlab.com/gitlab-org/gitlab-ci-runner/blob/master/lib/build.rb#L96) and contains the following environmental variables: + + CI_SERVER, CI_SERVER_NAME, CI_SERVER_VERSION, CI_SERVER_REVISION + CI_BUILD_REF, CI_BUILD_BEFORE_SHA, CI_BUILD_REF_NAME (branch), CI_BUILD_ID + +# Build script examples + + [Build script for Omniauth LDAP](build-script-for-omniauth-ldap.md) + [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 + + [Configure a runner to run the GitLab CE test suite](configure_a_runner_to_run_the_gitlab_ce_test_suite.md) |