Commit 9a2bf266 authored by nabokovas's avatar nabokovas Committed by Nikita Titov
Browse files

[ci] sort package installation (#1761)

* sort package installation
parent 1a1255ac
...@@ -31,7 +31,7 @@ install: ...@@ -31,7 +31,7 @@ install:
- ps: $env:LGB_VER = (Get-Content VERSION.txt).trim() - ps: $env:LGB_VER = (Get-Content VERSION.txt).trim()
- conda config --set always_yes yes --set changeps1 no - conda config --set always_yes yes --set changeps1 no
- conda update -q conda - conda update -q conda
- conda create -q -n test-env python=%PYTHON_VERSION% numpy nose scipy scikit-learn pandas matplotlib python-graphviz pytest joblib - conda create -q -n test-env python=%PYTHON_VERSION% joblib matplotlib nose numpy pandas pytest python-graphviz scikit-learn scipy
- activate test-env - activate test-env
build_script: build_script:
......
...@@ -61,7 +61,7 @@ if [[ $TASK == "if-else" ]]; then ...@@ -61,7 +61,7 @@ if [[ $TASK == "if-else" ]]; then
exit 0 exit 0
fi 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 matplotlib nose numpy pandas pytest python-graphviz scikit-learn scipy
if [[ $OS_NAME == "macos" ]] && [[ $COMPILER == "clang" ]]; then if [[ $OS_NAME == "macos" ]] && [[ $COMPILER == "clang" ]]; then
sudo 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) sudo 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)
......
...@@ -148,7 +148,7 @@ jobs: ...@@ -148,7 +148,7 @@ jobs:
createCustomEnvironment: true createCustomEnvironment: true
updateConda: true updateConda: true
environmentName: $(CONDA_ENV) environmentName: $(CONDA_ENV)
packageSpecs: 'python=$(PYTHON_VERSION) numpy nose matplotlib python-graphviz pytest scipy scikit-learn pandas' packageSpecs: 'python=$(PYTHON_VERSION) matplotlib nose numpy pandas pytest python-graphviz scikit-learn scipy'
createOptions: '-q' createOptions: '-q'
- powershell: $(Build.SourcesDirectory)/.ci/test_windows.ps1 - powershell: $(Build.SourcesDirectory)/.ci/test_windows.ps1
displayName: Test displayName: Test
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment