From 3e31e116f342c85988553c9701987327fca70603 Mon Sep 17 00:00:00 2001 From: Emily Hudson Date: Mon, 5 Aug 2019 08:03:38 +0000 Subject: [PATCH] CI: Windows - build and test both msvc and gcc (#1466) --- make_tests.bat | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/make_tests.bat b/make_tests.bat index d48c3c2b4d..5ce60c9816 100644 --- a/make_tests.bat +++ b/make_tests.bat @@ -3,11 +3,26 @@ curl -O https://raw.githubusercontent.com/vlang/vc/master/v.c gcc -std=gnu11 -DUNICODE -D_UNICODE -w -o vc.exe v.c del v.c vc.exe -o v.exe compiler +v.exe -os msvc -o v.msvc.exe compiler +v.msvc.exe -os msvc -o v.msvc.2.exe compiler +v.msvc.exe -o v.gcc.exe compiler setlocal EnableDelayedExpansion for /r . %%x in (*_test.v) do ( v -o test.exe -debug %%x if !ERRORLEVEL! NEQ 0 goto :fail ) +for /r . %%x in (*_test.v) do ( + v.msvc.exe -o test.exe -debug %%x + if !ERRORLEVEL! NEQ 0 goto :fail +) +for /r . %%x in (*_test.v) do ( + v.msvc.2.exe -o test.exe -debug %%x + if !ERRORLEVEL! NEQ 0 goto :fail +) +for /r . %%x in (*_test.v) do ( + v.gcc.exe -o test.exe -debug %%x + if !ERRORLEVEL! NEQ 0 goto :fail +) goto :done :fail