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:
- set PATH=%MINICONDA%;%MINICONDA%\Scripts;%PATH%
- ps: $env:LGB_VER = (Get-Content VERSION.txt).trim()
- 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
- activate test-env
- set PATH=%CONDA_PREFIX%\Library\bin\graphviz;%PATH% # temp graphviz hotfix
......@@ -44,7 +44,7 @@ test_script:
- pytest %APPVEYOR_BUILD_FOLDER%\tests\python_package_test
- cd %APPVEYOR_BUILD_FOLDER%\examples\python-guide
- 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"
- ps: >-
foreach ($file in @(Get-ChildItem *.py)) {
......
......@@ -57,4 +57,4 @@ if [[ $TRAVIS == "true" ]] || [[ $OS_NAME == "macos" ]]; then
sh conda.sh -b -p $CONDA
fi
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:
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
displayName: Enable conda
- 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
cmd /c "activate %CONDA_ENV% & powershell -ExecutionPolicy Bypass -File %BUILD_SOURCESDIRECTORY%/.ci/test_windows.ps1"
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