|
| 1 | +# Build `conda.recipe` only if this is a Pull_Request. Saves time for CI. |
| 2 | + |
1 | 3 | if ($env:APPVEYOR_PULL_REQUEST_NUMBER) { |
2 | 4 | # Update PATH, and keep a copy to restore at end of this PowerShell script |
3 | 5 | $old_path = $env:path |
4 | 6 | $env:path = "$env:CONDA_BLD;$env:CONDA_BLD\Scripts;" + $env:path |
5 | 7 |
|
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 |
| 8 | + Write-Host "Starting conda install" -ForegroundColor "Green" |
| 9 | + conda config --set always_yes True |
| 10 | + conda config --set changeps1 False |
| 11 | + conda install conda-build jinja2 anaconda-client --quiet |
9 | 12 |
|
10 | | - Write-Host "Starting Conda Recipe build" -ForegroundColor "Green" |
11 | | - conda build conda.recipe -q --dirty |
| 13 | + Write-Host "Starting conda build recipe" -ForegroundColor "Green" |
| 14 | + conda build conda.recipe --dirty --quiet |
12 | 15 |
|
13 | | - $CONDA_PKG=(conda build conda.recipe -q --output) |
14 | | - Copy-Item $CONDA_PKG "$env:APPVEYOR_BUILD_FOLDER\dist\" |
15 | | - Write-Host "Completed Conda Recipe build" -ForegroundColor "Green" |
| 16 | + $CONDA_PKG=(conda build conda.recipe --output) |
| 17 | + Copy-Item $CONDA_PKG .\dist\ |
| 18 | + Write-Host "Completed conda build recipe" -ForegroundColor "Green" |
16 | 19 |
|
17 | 20 | # Restore PATH back to original |
18 | 21 | $env:path = $old_path |
19 | 22 | } else { |
20 | | - Write-Host "Skipping Conda Recipe build" -ForegroundColor "Green" |
| 23 | + Write-Host "Skipping conda build recipe" -ForegroundColor "Green" |
21 | 24 | } |
0 commit comments