diff options
author | Sytse Sijbrandij <sytse@gitlab.com> | 2015-03-06 01:17:05 +0000 |
---|---|---|
committer | Sytse Sijbrandij <sytse@gitlab.com> | 2015-03-06 01:17:05 +0000 |
commit | 3a113468b6b20836851055781da9f3f18f35be8d (patch) | |
tree | 204483f081d9e1c6283251347c7aa7033334e087 | |
parent | ee81ef56eba33635f4bb36a43a0437579f9d68d2 (diff) | |
parent | db398eab855651116047424e9d7a459fbeda7257 (diff) | |
download | gitlab-ci-3a113468b6b20836851055781da9f3f18f35be8d.tar.gz |
Merge branch 'update_example_of_ce_build_script' into 'master'
Update the example of CE build script.
See merge request !131
-rw-r--r-- | doc/examples/build_script_gitlab_ce.md | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/doc/examples/build_script_gitlab_ce.md b/doc/examples/build_script_gitlab_ce.md index 71fc672..50fb059 100644 --- a/doc/examples/build_script_gitlab_ce.md +++ b/doc/examples/build_script_gitlab_ce.md @@ -6,10 +6,11 @@ These script can be run to tests of GitLab CE on a [configured](configure_a_runn # Build script used at ci.gitlab.org to test the private GitLab B.V. repo at dev.gitlab.org ```bash -export PATH=~/bin:/usr/local/bin:/usr/bin:/bin - +export PATH=$HOME/bin:/usr/local/bin:/usr/bin:/bin ruby -v +which ruby gem install bundler --no-ri --no-rdoc + cp config/database.yml.mysql config/database.yml cp config/gitlab.yml.example config/gitlab.yml sed "s/username\:.*$/username\: runner/" -i config/database.yml @@ -17,8 +18,9 @@ sed "s/password\:.*$/password\: 'password'/" -i config/database.yml sed "s/gitlabhq_test/gitlabhq_test_$((RANDOM/5000))/" -i config/database.yml touch log/application.log touch log/test.log -bundle --without postgres -bundle exec rake test RAILS_ENV=test +bundle install --without postgres production --jobs $(nproc) +bundle exec rake db:create RAILS_ENV=test +RAILS_ENV=test SIMPLECOV=true bundle exec rake test ``` # Build script on [GitHost.io](https://gitlab-ce.githost.io/projects/4/) to test the [GitLab.com repo](https://gitlab.com/gitlab-org/gitlab-ce) |