Unverified Commit 16751b38 authored by Nikita Titov's avatar Nikita Titov Committed by GitHub
Browse files

[ci] downgrade conda (#2245)

* Update .appveyor.yml

* Update .vsts-ci.yml

* Update setup.sh
parent 62935f52
...@@ -28,7 +28,7 @@ install: ...@@ -28,7 +28,7 @@ install:
- set PATH=%MINICONDA%;%MINICONDA%\Scripts;%PATH% - set PATH=%MINICONDA%;%MINICONDA%\Scripts;%PATH%
- 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 -y conda - conda install -q -y conda=4.6.14 # temp fix, change to update later
- conda create -q -y -n test-env python=%PYTHON_VERSION% matplotlib numpy pandas psutil pytest python-graphviz scikit-learn scipy - conda create -q -y -n test-env python=%PYTHON_VERSION% matplotlib numpy pandas psutil pytest python-graphviz scikit-learn scipy
- activate test-env - activate test-env
- set PATH=%CONDA_PREFIX%\Library\bin\graphviz;%PATH% # temp graphviz hotfix - set PATH=%CONDA_PREFIX%\Library\bin\graphviz;%PATH% # temp graphviz hotfix
...@@ -44,7 +44,7 @@ test_script: ...@@ -44,7 +44,7 @@ test_script:
- pytest %APPVEYOR_BUILD_FOLDER%\tests\python_package_test - pytest %APPVEYOR_BUILD_FOLDER%\tests\python_package_test
- cd %APPVEYOR_BUILD_FOLDER%\examples\python-guide - cd %APPVEYOR_BUILD_FOLDER%\examples\python-guide
- ps: >- - ps: >-
@("import matplotlib", "matplotlib.use('Agg')") +(Get-Content "plot_example.py") | Set-Content"plot_example.py" # prevent interactive window mode @("import matplotlib", "matplotlib.use('Agg')") + (Get-Content "plot_example.py") | Set-Content "plot_example.py" # prevent interactive window mode
(Get-Content "plot_example.py").replace('graph.render(view=True)', 'graph.render(view=False)') | Set-Content "plot_example.py" (Get-Content "plot_example.py").replace('graph.render(view=True)', 'graph.render(view=False)') | Set-Content "plot_example.py"
- ps: >- - ps: >-
foreach ($file in @(Get-ChildItem *.py)) { foreach ($file in @(Get-ChildItem *.py)) {
......
...@@ -57,4 +57,4 @@ if [[ $TRAVIS == "true" ]] || [[ $OS_NAME == "macos" ]]; then ...@@ -57,4 +57,4 @@ if [[ $TRAVIS == "true" ]] || [[ $OS_NAME == "macos" ]]; then
sh conda.sh -b -p $CONDA sh conda.sh -b -p $CONDA
fi fi
conda config --set always_yes yes --set changeps1 no conda config --set always_yes yes --set changeps1 no
conda update -q conda conda install -q -y conda=4.6.14 # temp fix, change to update later
...@@ -127,7 +127,7 @@ jobs: ...@@ -127,7 +127,7 @@ jobs:
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts" - powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
displayName: Enable conda displayName: Enable conda
- script: | - script: |
conda update -q -y conda conda install -q -y conda=4.6.14
conda create -q -y -n %CONDA_ENV% python=%PYTHON_VERSION% matplotlib numpy pandas psutil pytest python-graphviz scikit-learn scipy conda create -q -y -n %CONDA_ENV% python=%PYTHON_VERSION% matplotlib numpy pandas psutil pytest python-graphviz scikit-learn scipy
cmd /c "activate %CONDA_ENV% & powershell -ExecutionPolicy Bypass -File %BUILD_SOURCESDIRECTORY%/.ci/test_windows.ps1" cmd /c "activate %CONDA_ENV% & powershell -ExecutionPolicy Bypass -File %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