Commit 9eb81331 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Make sure our current .gitlab-ci.yml is valid

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.
parent 57d5a549
...@@ -4,6 +4,16 @@ module Ci ...@@ -4,6 +4,16 @@ module Ci
describe GitlabCiYamlProcessor, lib: true do describe GitlabCiYamlProcessor, lib: true do
let(:path) { 'path' } 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 '#build_attributes' do
describe 'coverage entry' do describe 'coverage entry' do
subject { described_class.new(config, path).build_attributes(:rspec) } subject { described_class.new(config, path).build_attributes(:rspec) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment