提交 9eb81331 编写于 作者: L 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.
上级 57d5a549
......@@ -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) }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册