Skip to content

Commit

Permalink
winbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
jpn-- committed Mar 28, 2017
1 parent e354d99 commit 689a546
Showing 1 changed file with 45 additions and 6 deletions.
51 changes: 45 additions & 6 deletions scripts/windows-build-test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,62 @@ for /l %%m in (5, 1, 6) do (
conda env create --file seedling-3%%m.yml --name !SEEDLING!


call activate !SEEDLING!
call activate !SEEDLING!
set OPENBLAS_NUM_THREADS=1


python setup.py build
EXIT /B 1
python setup.py build
if !ERRORLEVEL! NEQ 0 (
REM Install failed
echo python build larch returned error !ERRORLEVEL!
set LARCHBAT_ERR=!ERRORLEVEL!
echo python 3.%%m build larch returned error !LARCHBAT_ERR!
call deactivate
conda env remove -n !SEEDLING! --yes
echo python 3.%%m build larch returned error !LARCHBAT_ERR!
EXIT /B 1
)

python setup_test.py
if !ERRORLEVEL! NEQ 0 (
REM Install failed
echo python test larch returned error !ERRORLEVEL!
set LARCHBAT_ERR=!ERRORLEVEL!
echo python 3.%%m test larch returned error !LARCHBAT_ERR!
call deactivate
conda env remove -n !SEEDLING! --yes
echo python 3.%%m test larch returned error !LARCHBAT_ERR!
EXIT /B 1
)





python setup.py bdist_wheel --keep-temp


conda env create --file seedling-3%%m.yml --name !SAPLING!
call activate !SAPLING!
cd ..
pip install !TEMP_BLD_DIR!/dist/larch-*.whl

python -c"import larch.test; larch.test.run(exit=True,fail_fast=True)"

if !ERRORLEVEL! NEQ 0 (
set LARCHBAT_ERR=!ERRORLEVEL!
echo python 3.%%m abort on installer test fail error !LARCHBAT_ERR!
call deactivate
conda env remove -n !SAPLING! --yes
conda env remove -n !SEEDLING! --yes
echo python 3.%%m abort on installer test fail error !LARCHBAT_ERR!
EXIT /B 1
) else (
echo test on installer python3%%m success;
)

call deactivate
conda env remove -n !SAPLING! --yes
conda env remove -n !SEEDLING! --yes




)

0 comments on commit 689a546

Please sign in to comment.