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
ae34ad3e
Commit
ae34ad3e
authored
Sep 10, 2018
by
Nikita Titov
Committed by
Guolin Ke
Sep 10, 2018
Browse files
[ci] split mpi version test into two: source and pip (#1658)
parent
50e19b17
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
.travis.yml
.travis.yml
+2
-1
.travis/test.sh
.travis/test.sh
+6
-3
No files found.
.travis.yml
View file @
ae34ad3e
...
@@ -16,12 +16,13 @@ env:
...
@@ -16,12 +16,13 @@ env:
matrix
:
matrix
:
-
TASK=regular PYTHON_VERSION=3.6
-
TASK=regular PYTHON_VERSION=3.6
-
TASK=regular COMPILER=clang
-
TASK=regular COMPILER=clang
-
TASK=mpi
-
TASK=pylint
-
TASK=pylint
-
TASK=check-docs
-
TASK=check-docs
-
TASK=if-else
-
TASK=if-else
-
TASK=sdist PYTHON_VERSION=2.7
-
TASK=sdist PYTHON_VERSION=2.7
-
TASK=bdist
-
TASK=bdist
-
TASK=mpi METHOD=source
-
TASK=mpi METHOD=pip
-
TASK=gpu METHOD=source PYTHON_VERSION=3.5
-
TASK=gpu METHOD=source PYTHON_VERSION=3.5
-
TASK=gpu METHOD=pip PYTHON_VERSION=3.6
-
TASK=gpu METHOD=pip PYTHON_VERSION=3.6
...
...
.travis/test.sh
View file @
ae34ad3e
...
@@ -95,9 +95,12 @@ fi
...
@@ -95,9 +95,12 @@ fi
mkdir
$TRAVIS_BUILD_DIR
/build
&&
cd
$TRAVIS_BUILD_DIR
/build
mkdir
$TRAVIS_BUILD_DIR
/build
&&
cd
$TRAVIS_BUILD_DIR
/build
if
[[
$TASK
==
"mpi"
]]
;
then
if
[[
$TASK
==
"mpi"
]]
;
then
if
[[
$METHOD
==
"pip"
]]
;
then
cd
$TRAVIS_BUILD_DIR
/python-package
&&
python setup.py sdist
||
exit
-1
cd
$TRAVIS_BUILD_DIR
/python-package
&&
python setup.py sdist
||
exit
-1
pip
install
$TRAVIS_BUILD_DIR
/python-package/dist/lightgbm-
$LGB_VER
.tar.gz
-v
--install-option
=
--mpi
||
exit
-1
pip
install
$TRAVIS_BUILD_DIR
/python-package/dist/lightgbm-
$LGB_VER
.tar.gz
-v
--install-option
=
--mpi
||
exit
-1
cd
$TRAVIS_BUILD_DIR
/build
pytest
$TRAVIS_BUILD_DIR
/tests/python_package_test
||
exit
-1
exit
0
fi
cmake
-DUSE_MPI
=
ON ..
cmake
-DUSE_MPI
=
ON ..
elif
[[
$TASK
==
"gpu"
]]
;
then
elif
[[
$TASK
==
"gpu"
]]
;
then
cmake
-DUSE_GPU
=
ON
-DBOOST_ROOT
=
$HOME
/miniconda/envs/test-env/
-DOpenCL_INCLUDE_DIR
=
$AMDAPPSDK
/include/ ..
cmake
-DUSE_GPU
=
ON
-DBOOST_ROOT
=
$HOME
/miniconda/envs/test-env/
-DOpenCL_INCLUDE_DIR
=
$AMDAPPSDK
/include/ ..
...
...
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