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
306c6dbf
Unverified
Commit
306c6dbf
authored
Sep 19, 2019
by
Nikita Titov
Committed by
GitHub
Sep 19, 2019
Browse files
[ci] added cpplint check (#2416)
* added cpplint heck * removed TODO from code * change order of checks
parent
a3a353d6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
.ci/test.sh
.ci/test.sh
+3
-1
.travis.yml
.travis.yml
+2
-2
No files found.
.ci/test.sh
View file @
306c6dbf
...
@@ -50,10 +50,12 @@ if [[ $TRAVIS == "true" ]] && [[ $TASK == "check-docs" ]]; then
...
@@ -50,10 +50,12 @@ if [[ $TRAVIS == "true" ]] && [[ $TASK == "check-docs" ]]; then
exit
0
exit
0
fi
fi
if
[[
$TASK
==
"
py
lint"
]]
;
then
if
[[
$TASK
==
"lint"
]]
;
then
conda
install
-q
-y
-n
$CONDA_ENV
pycodestyle pydocstyle
conda
install
-q
-y
-n
$CONDA_ENV
pycodestyle pydocstyle
pip
install
--user
cpplint
pycodestyle
--ignore
=
E501,W503
--exclude
=
./compute,./.nuget
.
||
exit
-1
pycodestyle
--ignore
=
E501,W503
--exclude
=
./compute,./.nuget
.
||
exit
-1
pydocstyle
--convention
=
numpy
--add-ignore
=
D105
--match-dir
=
"^(?!^compute|test|example).*"
--match
=
"(?!^test_|setup).*
\.
py"
.
||
exit
-1
pydocstyle
--convention
=
numpy
--add-ignore
=
D105
--match-dir
=
"^(?!^compute|test|example).*"
--match
=
"(?!^test_|setup).*
\.
py"
.
||
exit
-1
cpplint
--filter
=
-build
/header_guard,-whitespace/line_length
--recursive
./src ./include
||
exit
0
exit
0
exit
0
fi
fi
...
...
.travis.yml
View file @
306c6dbf
...
@@ -17,7 +17,7 @@ env:
...
@@ -17,7 +17,7 @@ env:
-
TASK=sdist PYTHON_VERSION=2.7
-
TASK=sdist PYTHON_VERSION=2.7
-
TASK=bdist
-
TASK=bdist
-
TASK=if-else
-
TASK=if-else
-
TASK=
py
lint
-
TASK=lint
-
TASK=check-docs
-
TASK=check-docs
-
TASK=mpi METHOD=source
-
TASK=mpi METHOD=source
-
TASK=mpi METHOD=pip
-
TASK=mpi METHOD=pip
...
@@ -31,7 +31,7 @@ matrix:
...
@@ -31,7 +31,7 @@ matrix:
-
os
:
osx
-
os
:
osx
env
:
TASK=gpu METHOD=pip PYTHON_VERSION=3.6
env
:
TASK=gpu METHOD=pip PYTHON_VERSION=3.6
-
os
:
osx
-
os
:
osx
env
:
TASK=
py
lint
env
:
TASK=lint
-
os
:
osx
-
os
:
osx
env
:
TASK=check-docs
env
:
TASK=check-docs
...
...
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