diff options
author | Rémy Coutable <remy@rymai.me> | 2017-02-10 15:57:00 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-02-10 15:57:00 +0000 |
commit | ce9d41df085428ac7e212e95142f6a6ff0b50ae0 (patch) | |
tree | 2c7153027cb33117e65cf0129ff84045bdd8956e | |
parent | b88e82ff0a1bca9687b5579208ba05a99e41a464 (diff) | |
parent | 9eb81331457a480251218dd837867fd6e2a6e3f6 (diff) | |
download | gitlab-ce-ce9d41df085428ac7e212e95142f6a6ff0b50ae0.tar.gz |
Merge branch 'test-for-current-gitlab-ci-yml' into 'master'
Make sure our current .gitlab-ci.yml is valid
See merge request !9125
-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) } |