diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-06-03 14:20:15 +0000 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-06-03 14:20:15 +0000 |
commit | c2c9236cde807e98ff9571f8d23ac4def75eb9ba (patch) | |
tree | d73a723a36681d83187e6c75a4b444315d943a9c /lib/api/helpers.rb | |
parent | a5b1a3a538bf59e49aea86d7ce2013c0a8d3ac2d (diff) | |
parent | 27a3fe8b98798861dc637b2642de24af3ea12d24 (diff) | |
download | gitlab-ci-c2c9236cde807e98ff9571f8d23ac4def75eb9ba.tar.gz |
Merge branch 'jobs_in_yml' into 'master'
CI configuration with .gitlab-ci.yml
https://dev.gitlab.org/gitlab/gitlab-ci/issues/245
Example:
```
# Refs to skip
skip_refs: “deploy*”
# Run before each script
before_script:
- export PATH=$HOME/bin:/usr/local/bin:/usr/bin:/bin
- gem install bundler
- cp config/database.yml.mysql config/database.yml
- cp config/gitlab.yml.example config/gitlab.yml
- touch log/application.log
- touch log/test.log
- bundle install --without postgres production --jobs $(nproc)
- bundle exec rake db:create RAILS_ENV=test
# Parallel jobs, each line is parallel build
jobs:
- script: “rake spec”
runner: “ruby,postgres”
name: “Rspec”
- script: “rake spinach”
runner: “ruby,mysql”
name: “Spinach”
tags: true
branches: false
# Parallel deploy jobs
deploy_jobs:
“cap deploy production”
“cap deploy staging”
```
See merge request !110
Diffstat (limited to 'lib/api/helpers.rb')
0 files changed, 0 insertions, 0 deletions