summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorMarin Jankovski <maxlazio@gmail.com>2015-06-17 12:23:43 +0200
committerMarin Jankovski <maxlazio@gmail.com>2015-06-17 12:23:43 +0200
commitb6688f830b5e83ed670f061e619f96487ac8a6a2 (patch)
tree92bdfc20c33fbbb08d7513077b56540267d2de3e /.gitlab-ci.yml
parent4f582a14b76ca1e064a55fd6d06c26c23f7ad0f8 (diff)
downloadgitlab-ce-b6688f830b5e83ed670f061e619f96487ac8a6a2.tar.gz
Add a build preparation script, modify gitlab.ci.yml to use the script.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml14
1 files changed, 4 insertions, 10 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8fba268be7d..a58fbc57b39 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,19 +1,13 @@
# This file is generated by GitLab CI
before_script:
- - export PATH=$HOME/bin:/usr/local/bin:/usr/bin:/bin
+ - ./bin/build_prepare.sh
- ruby -v
- which ruby
- - gem install bundler
- - which bundle
- - echo $PATH
- - cp config/database.yml.mysql config/database.yml
+ - gem install bundler --no-ri --no-rdoc
- cp config/gitlab.yml.example config/gitlab.yml
- - 'sed "s/username\:.*$/username\: runner/" -i config/database.yml'
- - '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 install --without postgres production --jobs $(nproc)
+ - bundle install --without postgres production --jobs $(nproc) "${FLAGS[@]}"
- bundle exec rake db:create RAILS_ENV=test
Rspec:
script:
@@ -48,4 +42,4 @@ Brakeman:
- bundle exec rake brakeman
tags:
- ruby
- - mysql \ No newline at end of file
+ - mysql