Skip to content

Commit

Permalink
make test installer not blocking for now
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsavulescu committed Oct 22, 2020
1 parent 1f0e3d1 commit 7be7ef1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions ci/azure-win-installer-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ steps:
versionSpec: '2.7'
displayName: "Use System Python"

# Note: silently installing neuron doesn't work, when we print out the contents of the installation folder not all files
# are there. We suspect an Azure issue since we've tried a lot of things (to name a few: trying NSIS 3.04 commit that
# was working back then, changing NSIS installers, trying latest NSIS, different process waiting strategies including
# powershell and start /wait and so on) and locally testing the installer works.
- task: BatchScript@1
inputs:
filename: ci/win_test_installer.cmd
Expand Down
12 changes: 8 additions & 4 deletions ci/win_test_installer.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
python -m pip install numpy

:: install installer
.\nrn-nightly-AMD64.exe /S /D=C:\nrn_test
start /wait .\nrn-nightly-AMD64.exe /S /D=C:\nrn_test

:: setup environment
:: take a look
dir C:\nrn_test
tree /F C:\nrn_test\lib\python

:: setup environment
set PATH=C:\nrn_test\bin;%PATH%
set PYTHONPATH=C:\nrn_test\lib\python;%PYTHONPATH%
set NEURONHOME=C:\nrn_test
Expand Down Expand Up @@ -68,6 +71,7 @@ echo "Uninstalled NEURON"
goto :EOF

:: something has failed, teminate with error code
:: TODO - fix silent installer and exit from here
:error
echo ERROR : exiting with error code %errorlevel%
exit /b %errorlevel%
echo ERROR : NOT exiting with error code %errorlevel% foor now ..
:: exit /b %errorlevel%

0 comments on commit 7be7ef1

Please sign in to comment.