This repository was archived by the owner on Jul 22, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,13 +11,7 @@ environment:
1111 PYTHONWARNINGS : ' ignore:::wheel.pep425tags:'
1212 PYTHONPATH : C:\testdir
1313 NUNIT : nunit3-console
14- CONDA_BLD : C:\conda
15- CONDA_BLD_VERSION : 3.5
16-
17- # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
18- # /E:ON and /V:ON options are not enabled in the batch script interpreter
19- # See: http://stackoverflow.com/a/13751649/163740
20- CMD_IN_ENV : ' cmd /E:ON /V:ON /C .\ci\run_with_env.cmd'
14+ CONDA_BLD : C:\miniconda35
2115
2216 matrix :
2317 - PYTHON_VERSION : 2.7
3731 - if %PLATFORM%==x86 (set CONDA_BLD_ARCH=32)
3832 # - if %PLATFORM%==x86 (set NUNIT=%NUNIT%-x86)
3933 - if %PLATFORM%==x64 (set PYTHON=%PYTHON%-x64)
34+ - if %PLATFORM%==x64 (set CONDA_BLD=%CONDA_BLD%-x64)
4035
4136 # Prepend newly installed Python to the PATH of this build
4237 - set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
Original file line number Diff line number Diff line change 11if ($env: APPVEYOR_PULL_REQUEST_NUMBER ) {
2- Invoke-Expression .\ci\install_miniconda.ps1
3- & " $env: CONDA_BLD \Scripts\conda" build conda.recipe -- dirty - q
4- $CONDA_PKG = (& " $env: CONDA_BLD \Scripts\conda" build conda.recipe -- output - q)
2+ # Update PATH, and keep a copy to restore at end of this PowerShell script
3+ $old_path = $env: path
4+ $env: path = " $env: CONDA_BLD ;$env: CONDA_BLD \Scripts;" + $env: path
5+
6+ Write-Host " Starting Conda Update/Install" - ForegroundColor " Green"
7+ conda update conda - q - y
8+ conda install conda- build jinja2 anaconda- client - q - y
9+
10+ Write-Host " Starting Conda Recipe build" - ForegroundColor " Green"
11+ conda build conda.recipe - q -- dirty
12+
13+ $CONDA_PKG = (conda build conda.recipe - q -- output)
514 Copy-Item $CONDA_PKG " $env: APPVEYOR_BUILD_FOLDER \dist\"
15+ Write-Host " Completed Conda Recipe build" - ForegroundColor " Green"
16+
17+ # Restore PATH back to original
18+ $env: path = $old_path
19+ } else {
20+ Write-Host " Skipping Conda Recipe build" - ForegroundColor " Green"
621}
Load diff This file was deleted.
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments