Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
c870c57a
Unverified
Commit
c870c57a
authored
Mar 25, 2020
by
James Lamb
Committed by
GitHub
Mar 25, 2020
Browse files
added check on number of R CMD CHECK notes (#2942)
parent
0341906c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
.ci/test_r_package.sh
.ci/test_r_package.sh
+11
-0
No files found.
.ci/test_r_package.sh
View file @
c870c57a
...
@@ -91,4 +91,15 @@ if grep -q -R "WARNING" "$LOG_FILE_NAME"; then
...
@@ -91,4 +91,15 @@ if grep -q -R "WARNING" "$LOG_FILE_NAME"; then
exit
-1
exit
-1
fi
fi
ALLOWED_CHECK_NOTES
=
3
NUM_CHECK_NOTES
=
$(
cat
${
LOG_FILE_NAME
}
\
|
grep
-e
'^Status: .* NOTE.*'
\
|
sed
's/[^0-9]*//g'
)
if
[[
${
NUM_CHECK_NOTES
}
-gt
${
ALLOWED_CHECK_NOTES
}
]]
;
then
echo
"Found
${
NUM_CHECK_NOTES
}
NOTEs from R CMD check. Only
${
ALLOWED_CHECK_NOTES
}
are allowed"
exit
-1
fi
exit
0
exit
0
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