Skip to content
This repository was archived by the owner on Jul 22, 2023. It is now read-only.

Commit 433dc33

Browse files
committed
Clean-up AppVeyor build recipe
Conda automatically updates when doing install. To disable its autoupdate add conda config --set auto_update_conda False
1 parent 1d7e784 commit 433dc33

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

ci/appveyor_build_recipe.ps1

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
1+
# Build `conda.recipe` only if this is a Pull_Request. Saves time for CI.
2+
13
if ($env:APPVEYOR_PULL_REQUEST_NUMBER) {
24
# Update PATH, and keep a copy to restore at end of this PowerShell script
35
$old_path = $env:path
46
$env:path = "$env:CONDA_BLD;$env:CONDA_BLD\Scripts;" + $env:path
57

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
912

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
1215

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"
1619

1720
# Restore PATH back to original
1821
$env:path = $old_path
1922
} else {
20-
Write-Host "Skipping Conda Recipe build" -ForegroundColor "Green"
23+
Write-Host "Skipping conda build recipe" -ForegroundColor "Green"
2124
}

0 commit comments

Comments
 (0)