diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2019-04-11 16:09:34 +0200 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2019-04-11 16:09:34 +0200 |
commit | b683f5db89f1c3c6c815ffffd08b4422c2d0a01c (patch) | |
tree | 8711b79dd73bddfc9f35360cfce81974d1501519 /spec/lib/gitlab/ci/yaml_processor_spec.rb | |
parent | 41bc39dac52908e06f397045b8074d33b19bf03e (diff) | |
download | gitlab-ce-b683f5db89f1c3c6c815ffffd08b4422c2d0a01c.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.rb | 4 |
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 |