summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/ci/yaml_processor_spec.rb
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2019-04-11 16:09:34 +0200
committerKamil Trzciński <ayufan@ayufan.eu>2019-04-11 16:09:34 +0200
commitb683f5db89f1c3c6c815ffffd08b4422c2d0a01c (patch)
tree8711b79dd73bddfc9f35360cfce81974d1501519 /spec/lib/gitlab/ci/yaml_processor_spec.rb
parent41bc39dac52908e06f397045b8074d33b19bf03e (diff)
downloadgitlab-ce-add-global-only-and-except.tar.gz
Add global only/exceptadd-global-only-and-except
Diffstat (limited to 'spec/lib/gitlab/ci/yaml_processor_spec.rb')
-rw-r--r--spec/lib/gitlab/ci/yaml_processor_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/lib/gitlab/ci/yaml_processor_spec.rb b/spec/lib/gitlab/ci/yaml_processor_spec.rb
index 13113a4671a..2d24a11b52b 100644
--- a/spec/lib/gitlab/ci/yaml_processor_spec.rb
+++ b/spec/lib/gitlab/ci/yaml_processor_spec.rb
@@ -156,6 +156,8 @@ module Gitlab
when: "on_success",
yaml_variables: [],
options: { script: ["rspec"] },
+ global_only: { refs: ["branches", "tags"] },
+ global_except: {},
only: { refs: ["branches"] },
except: {} }] },
{ name: "deploy",
@@ -168,6 +170,8 @@ module Gitlab
when: "on_success",
yaml_variables: [],
options: { script: ["cap prod"] },
+ global_only: { refs: ["branches", "tags"] },
+ global_except: {},
only: { refs: ["tags"] },
except: {} }] }]
end