Skip to content
Snippets Groups Projects
Commit cf8a19b1 authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg
Browse files

Test templates and GitLabCI parser againts each other

parent 4477dc24
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1206,5 +1206,17 @@ EOT
end.to raise_error(GitlabCiYamlProcessor::ValidationError, "rspec job: dependencies parameter should be an array of strings")
end
end
describe "Validate configuration templates" do
templates = Dir.glob("#{Rails.root.join('vendor/gitlab-ci-yml')}/**/*.gitlab-ci.yml")
templates.each do |file|
it "does not return errors for #{file}" do
file = File.read(file)
expect { GitlabCiYamlProcessor.new(file) }.not_to raise_error
end
end
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment