File tree Expand file tree Collapse file tree 4 files changed +20
-190
lines changed Expand file tree Collapse file tree 4 files changed +20
-190
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,7 @@ environment:
11
11
PYTHONWARNINGS : ' ignore:::wheel.pep425tags:'
12
12
PYTHONPATH : C:\testdir
13
13
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
21
15
22
16
matrix :
23
17
- PYTHON_VERSION : 2.7
37
31
- if %PLATFORM%==x86 (set CONDA_BLD_ARCH=32)
38
32
# - if %PLATFORM%==x86 (set NUNIT=%NUNIT%-x86)
39
33
- if %PLATFORM%==x64 (set PYTHON=%PYTHON%-x64)
34
+ - if %PLATFORM%==x64 (set CONDA_BLD=%CONDA_BLD%-x64)
40
35
41
36
# Prepend newly installed Python to the PATH of this build
42
37
- set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
Original file line number Diff line number Diff line change 1
1
if ($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)
5
14
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"
6
21
}
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments