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
08add07b
Unverified
Commit
08add07b
authored
Aug 25, 2018
by
Guolin Ke
Committed by
GitHub
Aug 25, 2018
Browse files
support clang with openmp in vsts-ci test (#1606)
* Update .vsts-ci.yml * Update test.sh
parent
9bf2de1e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
.vsts-ci.yml
.vsts-ci.yml
+2
-6
.vsts-ci/test.sh
.vsts-ci/test.sh
+4
-0
No files found.
.vsts-ci.yml
View file @
08add07b
...
@@ -81,12 +81,8 @@ phases:
...
@@ -81,12 +81,8 @@ phases:
PYTHON_VERSION
:
3.5
PYTHON_VERSION
:
3.5
steps
:
steps
:
-
script
:
|
-
script
:
|
test -n $CC && unset CC
brew install libomp
test -n $CXX && unset CXX
brew reinstall cmake
rm '/usr/local/include/c++'
brew install gcc@8
export CXX=g++-8
export CC=gcc-8
wget -O conda.sh https://repo.continuum.io/miniconda/Miniconda${PYTHON_VERSION:0:1}-latest-MacOSX-x86_64.sh
wget -O conda.sh https://repo.continuum.io/miniconda/Miniconda${PYTHON_VERSION:0:1}-latest-MacOSX-x86_64.sh
bash conda.sh -b -p $HOME/miniconda
bash conda.sh -b -p $HOME/miniconda
export PATH=$HOME/miniconda/bin:$PATH
export PATH=$HOME/miniconda/bin:$PATH
...
...
.vsts-ci/test.sh
View file @
08add07b
...
@@ -42,6 +42,10 @@ fi
...
@@ -42,6 +42,10 @@ fi
conda
install
-q
-y
-n
$CONDA_ENV
numpy nose scipy scikit-learn pandas matplotlib python-graphviz pytest
conda
install
-q
-y
-n
$CONDA_ENV
numpy nose scipy scikit-learn pandas matplotlib python-graphviz pytest
if
[[
$AGENT_OS
==
"Darwin"
]]
;
then
ln
-sf
`
ls
-d
"
$(
brew
--cellar
libomp
)
"
/
*
/lib
`
/
*
$CONDA_PREFIX
/lib
||
exit
-1
# fix "OMP: Error #15: Initializing libiomp5.dylib, but found libomp.dylib already initialized." (OpenMP library conflict due to conda's MKL)
fi
if
[[
$TASK
==
"sdist"
]]
;
then
if
[[
$TASK
==
"sdist"
]]
;
then
cd
${
BUILD_REPOSITORY_LOCALPATH
}
/python-package
&&
python setup.py sdist
||
exit
-1
cd
${
BUILD_REPOSITORY_LOCALPATH
}
/python-package
&&
python setup.py sdist
||
exit
-1
pip
install
${
BUILD_REPOSITORY_LOCALPATH
}
/python-package/dist/lightgbm-
$LGB_VER
.tar.gz
-v
||
exit
-1
pip
install
${
BUILD_REPOSITORY_LOCALPATH
}
/python-package/dist/lightgbm-
$LGB_VER
.tar.gz
-v
||
exit
-1
...
...
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