Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CERN ROOT
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rutherford Experiment Lab Course Online
CERN ROOT
Commits
ba42d781
Commit
ba42d781
authored
8 years ago
by
Vassil Vassilev
Browse files
Options
Downloads
Patches
Plain Diff
Treat clang-tidy warnings as errors. Fixes PR wrongly marked red status.
parent
de02310a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.clang-tidy
+1
-0
1 addition, 0 deletions
.clang-tidy
.travis.yml
+1
-1
1 addition, 1 deletion
.travis.yml
with
2 additions
and
1 deletion
.clang-tidy
0 → 100644
+
1
−
0
View file @
ba42d781
WarningsAsErrors: '*'
This diff is collapsed.
Click to expand it.
.travis.yml
+
1
−
1
View file @
ba42d781
...
@@ -119,7 +119,7 @@ script:
...
@@ -119,7 +119,7 @@ script:
git remote set-branches --add origin master
git remote set-branches --add origin master
git fetch
git fetch
RESULT_OUTPUT="$(git diff -U0 origin/master | clang-tidy-diff-3.9.py -p1 -clang-tidy-binary $(which clang-tidy-3.9) -checks=-*,clang-analyzer-*)"
RESULT_OUTPUT="$(git diff -U0 origin/master | clang-tidy-diff-3.9.py -p1 -clang-tidy-binary $(which clang-tidy-3.9) -checks=-*,clang-analyzer-*)"
if [[
"$RESULT_OUTPUT" == "No relevant changes found."
]]; then
if [[
$? -eq 0
]]; then
echo "clang-tidy passed."
echo "clang-tidy passed."
exit 0
exit 0
else
else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment