diff options
author | Tomasz Maczukin <tomasz@maczukin.pl> | 2017-02-16 01:05:44 +0100 |
---|---|---|
committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2017-03-02 17:45:45 +0100 |
commit | 3eafffcef0f8932bab4e06b465f9b63327e87942 (patch) | |
tree | cdb64b4be94007d4b8d0ce380862f21a027267fa /spec/factories/ci/builds.rb | |
parent | 3d26a8d0b62f70e02917f7601bc2032fb3aed7e6 (diff) | |
download | gitlab-ce-3eafffcef0f8932bab4e06b465f9b63327e87942.tar.gz |
Refactor JobRequest response structure
Diffstat (limited to 'spec/factories/ci/builds.rb')
-rw-r--r-- | spec/factories/ci/builds.rb | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/spec/factories/ci/builds.rb b/spec/factories/ci/builds.rb index a90534d10ba..a77b3356b9a 100644 --- a/spec/factories/ci/builds.rb +++ b/spec/factories/ci/builds.rb @@ -15,8 +15,8 @@ FactoryGirl.define do options do { - image: "ruby:2.1", - services: ["postgres"] + image: 'ruby:2.1', + services: ['postgres'] } end @@ -151,5 +151,27 @@ FactoryGirl.define do allow(build).to receive(:commit).and_return build(:commit) end end + + trait :extended_options do + options do + { + image: 'ruby:2.1', + services: ['postgres'], + after_script: "ls\ndate", + artifacts: { + name: 'artifacts_file', + untracked: false, + paths: ['out/'], + when: 'always', + expire_in: '7d' + }, + cache: { + key: 'cache_key', + untracked: false, + paths: ['vendor/*'] + } + } + end + end end end |