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
d7eb6e31
Unverified
Commit
d7eb6e31
authored
Jun 06, 2018
by
Nikita Titov
Committed by
GitHub
Jun 06, 2018
Browse files
run all python examples at CI side (#1422)
parent
0a9d4cc2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
.travis/test.sh
.travis/test.sh
+7
-1
No files found.
.travis/test.sh
View file @
d7eb6e31
...
@@ -114,5 +114,11 @@ cd $TRAVIS_BUILD_DIR/python-package && python setup.py install --precompile || e
...
@@ -114,5 +114,11 @@ cd $TRAVIS_BUILD_DIR/python-package && python setup.py install --precompile || e
cd
$TRAVIS_BUILD_DIR
&&
pytest
.
||
exit
-1
cd
$TRAVIS_BUILD_DIR
&&
pytest
.
||
exit
-1
if
[[
${
TASK
}
==
"regular"
]]
;
then
if
[[
${
TASK
}
==
"regular"
]]
;
then
cd
$TRAVIS_BUILD_DIR
/examples/python-guide
&&
python simple_example.py
&&
python sklearn_example.py
&&
python advanced_example.py
||
exit
-1
conda
install
python-graphviz
cd
$TRAVIS_BUILD_DIR
/examples/python-guide
sed
-i
'.bak'
'/import lightgbm as lgb/a\
import matplotlib\
matplotlib.use\(\"Agg\"\)\
'
plot_example.py
# prevent interactive window mode
for
f
in
*
.py
;
do
python
$f
||
exit
-1
;
done
# run all examples
fi
fi
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