diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-02-10 16:33:10 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-02-10 16:33:10 +0800 |
commit | 9eb81331457a480251218dd837867fd6e2a6e3f6 (patch) | |
tree | 62ce0f6845d29fd42005fe40f42a8155236797c1 /spec/lib/ci | |
parent | 57d5a5499cc4248176e3740c3aae3fa99be00752 (diff) | |
download | gitlab-ce-9eb81331457a480251218dd837867fd6e2a6e3f6.tar.gz |
Make sure our current .gitlab-ci.yml is validtest-for-current-gitlab-ci-yml
This could prevent errors described in:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8970
Everything we're using right now, should be valid of course.
Diffstat (limited to 'spec/lib/ci')
-rw-r--r-- | spec/lib/ci/gitlab_ci_yaml_processor_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb b/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb index 008c15c4de3..68ad429608d 100644 --- a/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb +++ b/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb @@ -4,6 +4,16 @@ module Ci describe GitlabCiYamlProcessor, lib: true do let(:path) { 'path' } + describe 'our current .gitlab-ci.yml' do + let(:config) { File.read("#{Rails.root}/.gitlab-ci.yml") } + + it 'is valid' do + error_message = described_class.validation_message(config) + + expect(error_message).to be_nil + end + end + describe '#build_attributes' do describe 'coverage entry' do subject { described_class.new(config, path).build_attributes(:rspec) } |