summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-06-15 18:18:07 +0300
committerValery Sizov <vsv2711@gmail.com>2015-06-15 18:22:06 +0300
commita883f4fa61ced5d0eb653ddcdf78dc77b7a31dba (patch)
treebc54d6306313ae73c866db407bb4097c8fed91e3 /.gitlab-ci.yml
parentb90f4b20376e5a66ad7aa036e12576afc080fb1d (diff)
downloadgitlab-ci-a883f4fa61ced5d0eb653ddcdf78dc77b7a31dba.tar.gz
new ci yaml
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml53
1 files changed, 16 insertions, 37 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9f69dd9..db1cda4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,37 +1,16 @@
-jobs:
-- script: |
- export PATH=~/bin:/usr/local/bin:/usr/bin:/bin
- export RAILS_ENV=test
- ruby -v
- gem install bundler --no-ri --no-rdoc
- cp config/database.yml.mysql config/database.yml
- cp config/application.yml.example config/application.yml
- sed "s/username\:.*$/username\: runner/" -i config/database.yml
- sed "s/password\:.*$/password\: 'password'/" -i config/database.yml
- bundle --without postgres --jobs $(($(nproc) + 1))
- bundle exec rake db:setup
- SIMPLECOV=true RAILS_ENV=test bundle exec rake spec
- name: Specs
- branches: true
- tags: false
- runner:
-- script: |
- export PATH=~/bin:/usr/local/bin:/usr/bin:/bin
- ruby -v
- gem install bundler
- bundle --without postgres
- bundle exec rubocop
- name: Rubocop
- branches: true
- runner:
-- script: |
- export PATH=~/bin:/usr/local/bin:/usr/bin:/bin
- ruby -v
- gem install bundler
- bundle --without postgres
- bundle exec brakeman
- name: Brakeman
- branches: true
- runner:
-deploy_jobs: []
-skip_refs: ''
+before_script:
+ - export PATH=~/bin:/usr/local/bin:/usr/bin:/bin
+ - ruby -v
+ - gem install bundler
+ - cp config/database.yml.mysql config/database.yml
+ - cp config/application.yml.example config/application.yml
+ - 'sed "s/username\:.*$/username\: runner/" -i config/database.yml'
+ - 'sed "s/password\:.*$/password\: ''password''/" -i config/database.yml'
+ - bundle --without postgres
+ - RAILS_ENV=test bundle exec rake db:setup
+specs:
+ script: SIMPLECOV=true RAILS_ENV=test bundle exec rake spec
+rubocop:
+ script: bundle exec rubocop
+brakeman:
+ script: bundle exec brakeman \ No newline at end of file