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/entities.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/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 7417ef5..2089e23 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -29,11 +29,6 @@ module API expose :id, :project_id, :url end - class Job < Grape::Entity - expose :id, :project_id, :commands, :active, :name, :build_branches, - :build_tags, :tags, :job_type, :tag_list - end - class DeployJob < Grape::Entity expose :id, :project_id, :commands, :active, :name, :refs, :tags, :job_type, :refs, :tag_list |