Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
cf8a19b1
Commit
cf8a19b1
authored
8 years ago
by
Z.J. van de Weg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test templates and GitLabCI parser againts each other
parent
4477dc24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
+12
-0
No files found.
spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
View file @
cf8a19b1
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment