Skip to content

Commit

Permalink
AppVeyor: Install prerequisites
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed Mar 29, 2019
1 parent 81ab308 commit 0906177
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
5 changes: 4 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ environment:
global:
PLATFORMTOOLSET: "v140"

install:
- call ci\appveyor_install.bat

build_script:
- ci\build0.bat
- call ci\build0.bat
42 changes: 42 additions & 0 deletions ci/appveyor_install.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
:: Good documentation for Windows batch files:
:: https://ss64.com/nt/
::
:: Write the script between the two horizontal lines (`--------------`).
:: Put `call :check` after each command. This will ensure that if the command
:: fails, then the script will abort immediately with a nonzero exit code.
:: Doing that makes it equivalent to `set -e` in Bash.
::
:: Enable echo (equivalent of `set -x` in Bash)
@echo on
:: Inherit all current variables from the master environment
setlocal
::
:: -----------------------------------------------------------------------------

set CONDA_INSTALL_LOCN=C:\\Miniconda36-x64
call :check

call %CONDA_INSTALL_LOCN%\Scripts\activate.bat
call :check

call conda config --set always_yes yes --set changeps1 no
call :check
call conda info -a
call :check
call conda update -q conda
call :check
call conda install python=3.7 pytest llvmlite prompt_toolkit
call :check
pip install antlr4-python3-runtime
call :check

:: -----------------------------------------------------------------------------
:: End of script. We exit the script now.
goto :eof

:: Function definitions
:check
if errorlevel 1 (
echo "Non zero exit code returned, aborting..."
(goto) 2>nul & endlocal & exit /b %errorlevel%
)

0 comments on commit 0906177

Please sign in to comment.