Skip to content

Commit

Permalink
[ci] downgrade conda (#2245)
Browse files Browse the repository at this point in the history
* Update .appveyor.yml

* Update .vsts-ci.yml

* Update setup.sh
  • Loading branch information
StrikerRUS committed Jul 1, 2019
1 parent 62935f5 commit 16751b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .appveyor.yml
Expand Up @@ -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
Expand All @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion .ci/setup.sh
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .vsts-ci.yml
Expand Up @@ -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
Expand Down

0 comments on commit 16751b3

Please sign in to comment.