From b0963308081169ec7e7faa91097f3e3e92d27b2a Mon Sep 17 00:00:00 2001 From: Douglas Stebila Date: Wed, 6 Feb 2019 19:26:18 -0500 Subject: [PATCH] First attempt at appveyor configuration --- appveyor.yml | 12 ++++++++++++ scripts_windows/build_all.bat | 19 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 appveyor.yml create mode 100644 scripts_windows/build_all.bat diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 00000000..bbfc9e6a --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,12 @@ +version: 1.0.{build} + +image: Visual Studio 2017 + +build: + verbosity: minimal + +init: + - call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat" + +build_script: + - scripts_windows\build_all.bat diff --git a/scripts_windows/build_all.bat b/scripts_windows/build_all.bat new file mode 100644 index 00000000..44cec721 --- /dev/null +++ b/scripts_windows/build_all.bat @@ -0,0 +1,19 @@ +@ECHO OFF +SETLOCAL +SET EL=0 + +REM CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat" +REM IF ERRORLEVEL 1 SET EL=1 + +FOR /D %%K IN (crypto_kem\*) DO ( + FOR /D %%L IN (%%K\*) DO ( + cd %%L + nmake /f Makefile.Microsoft_nmake clean + IF ERRORLEVEL 1 SET EL=2 + nmake /f Makefile.Microsoft_nmake + IF ERRORLEVEL 1 SET EL=3 + cd ..\..\.. + ) +) + +EXIT /b %EL%