Allow private env:var to force conda build

To trigger conda build, just add/update private env:vars FORCE_CONDA_BUILD
on link below. Easier to debug and no need to edit appveyor yml/ps1

https://ci.appveyor.com/project/USER_NAME/pythonnet/settings/environment
This commit is contained in:
Victor Uriarte 2017-02-21 12:04:40 -07:00
Родитель 5e27c67f01
Коммит cbafe1ed8b
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -11,7 +11,7 @@ if ($env:PLATFORM -eq "x86"){
$env:CONDA_BLD = "$env:CONDA_BLD" + "-x64"
}
if ($env:APPVEYOR_PULL_REQUEST_NUMBER) {
if ($env:APPVEYOR_PULL_REQUEST_NUMBER -or $env:FORCE_CONDA_BUILD -eq "True") {
# Update PATH, and keep a copy to restore at end of this PowerShell script
$old_path = $env:path
$env:path = "$env:CONDA_BLD;$env:CONDA_BLD\Scripts;" + $env:path