2015-12-16 17:11:54 +00:00
|
|
|
param (
|
|
|
|
[string]$python = $(throw "-python is required."),
|
|
|
|
[string]$install_mode = $(throw "-install_mode is required."),
|
|
|
|
[string]$pip_date
|
|
|
|
)
|
2015-12-19 09:21:32 +00:00
|
|
|
|
|
|
|
$ErrorActionPreference = "Stop"
|
2015-12-16 17:11:54 +00:00
|
|
|
|
|
|
|
if(!(Test-Path -Path ".build"))
|
|
|
|
{
|
|
|
|
virtualenv .build --python $python
|
|
|
|
}
|
|
|
|
.build\Scripts\activate.ps1
|
|
|
|
|
2015-12-18 16:47:06 +00:00
|
|
|
python build.py prepare $pip_date
|
|
|
|
python build.py $install_mode
|
|
|
|
python build.py test
|
2015-12-16 18:13:36 +00:00
|
|
|
exit $LASTEXITCODE
|