@@ -5,80 +5,83 @@ set APPVEYOR_CI=1
55:: Check prerequisites
66set _msbuildexe = " %ProgramFiles(x86)% \MSBuild\12.0\Bin\MSBuild.exe"
77if not exist %_msbuildexe% set _msbuildexe = " %ProgramFiles% \MSBuild\12.0\Bin\MSBuild.exe"
8- if not exist %_msbuildexe% echo Error: Could not find MSBuild.exe. Please see http://www.microsoft.com/en-us/download/details.aspx?id=40760.&& goto :eof
8+ if not exist %_msbuildexe% echo Error: Could not find MSBuild.exe. Please see http://www.microsoft.com/en-us/download/details.aspx?id=40760.&& goto :failure
99
1010set _ngenexe = " %SystemRoot% \Microsoft.NET\Framework\v4.0.30319\ngen.exe"
11- if not exist %_ngenexe% echo Error: Could not find ngen.exe.&& goto :eof
11+ if not exist %_ngenexe% echo Error: Could not find ngen.exe.&& goto :failure
1212
1313.\.nuget\NuGet.exe restore packages.config -PackagesDirectory packages
14- @ if ERRORLEVEL1 echo Error: Nuget restore failed&& goto :eof
14+ @ if ERRORLEVEL1 echo Error: Nuget restore failed&& goto :failure
1515
1616:: Build
1717%_msbuildexe% src\fsharp-proto-build.proj
18- @ if ERRORLEVEL1 echo Error: compiler proto build failed&& goto :eof
18+ @ if ERRORLEVEL1 echo Error: compiler proto build failed&& goto :failure
1919
2020%_ngenexe% install Proto\net40\bin\fsc-proto.exe
21- @ if ERRORLEVEL1 echo Error: NGen of proto failed&& goto :eof
21+ @ if ERRORLEVEL1 echo Error: NGen of proto failed&& goto :failure
2222
2323%_msbuildexe% src/fsharp-library-build.proj /p:Configuration=Release
24- @ if ERRORLEVEL1 echo Error: library build failed&& goto :eof
24+ @ if ERRORLEVEL1 echo Error: library build failed&& goto :failure
2525
2626%_msbuildexe% src/fsharp-compiler-build.proj /p:Configuration=Release
27- @ if ERRORLEVEL1 echo Error: compiler build failed&& goto :eof
28-
29- REM We don't build new net20 FSharp.Core anymore
30- REM %_msbuildexe% src/fsharp-library-build.proj /p:TargetFramework=net20
31- REM @if ERRORLEVEL 1 echo Error: library net20 build failed && goto :eof
27+ @ if ERRORLEVEL1 echo Error: compiler build failed&& goto :failure
3228
3329%_msbuildexe% src/fsharp-library-build.proj /p:TargetFramework=portable47 /p:Configuration=Release
34- @ if ERRORLEVEL1 echo Error: library portable47 build failed&& goto :eof
30+ @ if ERRORLEVEL1 echo Error: library portable47 build failed&& goto :failure
3531
3632%_msbuildexe% src/fsharp-library-build.proj /p:TargetFramework=portable7 /p:Configuration=Release
37- @ if ERRORLEVEL1 echo Error: library portable7 build failed&& goto :eof
38-
33+ @ if ERRORLEVEL1 echo Error: library portable7 build failed&& goto :failure
3934
4035%_msbuildexe% src/fsharp-library-build.proj /p:TargetFramework=portable78 /p:Configuration=Release
41- @ if ERRORLEVEL1 echo Error: library portable78 build failed&& goto :eof
36+ @ if ERRORLEVEL1 echo Error: library portable78 build failed&& goto :failure
4237
4338%_msbuildexe% src/fsharp-library-build.proj /p:TargetFramework=portable259 /p:Configuration=Release
44- @ if ERRORLEVEL1 echo Error: library portable259 build failed&& goto :eof
45-
46-
47-
39+ @ if ERRORLEVEL1 echo Error: library portable259 build failed&& goto :failure
4840
4941%_msbuildexe% src/fsharp-library-unittests-build.proj /p:Configuration=Release
50- @ if ERRORLEVEL1 echo Error: library unittests build failed&& goto :eof
42+ @ if ERRORLEVEL1 echo Error: library unittests build failed&& goto :failure
5143
5244%_msbuildexe% src/fsharp-library-unittests-build.proj /p:TargetFramework=portable47 /p:Configuration=Release
53- @ if ERRORLEVEL1 echo Error: library unittests build failed portable47&& goto :eof
45+ @ if ERRORLEVEL1 echo Error: library unittests build failed portable47&& goto :failure
5446
5547%_msbuildexe% src/fsharp-library-unittests-build.proj /p:TargetFramework=portable7 /p:Configuration=Release
56- @ if ERRORLEVEL1 echo Error: library unittests build failed portable7&& goto :eof
48+ @ if ERRORLEVEL1 echo Error: library unittests build failed portable7&& goto :failure
5749
5850%_msbuildexe% src/fsharp-library-unittests-build.proj /p:TargetFramework=portable78 /p:Configuration=Release
59- @ if ERRORLEVEL1 echo Error: library unittests build failed portable78&& goto :eof
51+ @ if ERRORLEVEL1 echo Error: library unittests build failed portable78&& goto :failure
6052
53+ %_msbuildexe% src/fsharp-library-unittests-build.proj /p:TargetFramework=portable259 /p:Configuration=Release
54+ @ if ERRORLEVEL1 echo Error: library unittests build failed portable259&& goto :failure
55+
56+ %_msbuildexe% vsintegration\fsharp-vsintegration-build.proj /p:Configuration=Release
57+ @ if ERRORLEVEL1 echo Error: VS integration build failed&& goto :failure
58+
59+ %_msbuildexe% vsintegration\fsharp-vsintegration-unittests-build.proj /p:Configuration=Release
60+ @ if ERRORLEVEL1 echo Error: VS integration unit tests build failed&& goto :failure
6161
6262@ echo on
6363call src\update.cmd release -ngen
6464
6565@ echo on
6666call tests\BuildTestTools.cmd release
67- @ if ERRORLEVEL1 echo Error: 'tests\BuildTestTools.cmd release' failed&& goto :eof
67+ @ if ERRORLEVEL1 echo Error: 'tests\BuildTestTools.cmd release' failed&& goto :failure
6868
6969@ echo on
7070
7171pushd tests
7272
73- REM Disabled while working out perl problem, see https://github.com/Microsoft/visualfsharp/pull/169
74- REM call RunTests.cmd release fsharp Smoke
75- REM @if ERRORLEVEL 1 echo Error: 'RunTests.cmd release fsharpqa Smoke' failed && goto :eof
73+ call RunTests.cmd release fsharp Smoke
74+ @ if ERRORLEVEL1 type testresults\fsharp_failures.log&& echo Error: 'RunTests.cmd release fsharp Smoke' failed&& goto :failure
7675
77- REM Disabled while working out perl problem, see https://github.com/Microsoft/visualfsharp/pull/169
78- REM call RunTests.cmd release fsharpqa Smoke
79- REM @if ERRORLEVEL 1 echo Error: 'RunTests.cmd release fsharpqa Smoke' failed && goto :eof
76+ call RunTests.cmd release fsharpqa Smoke
77+ @ if ERRORLEVEL1 type testresults\fsharpqa_failures.log&& echo Error: 'RunTests.cmd release fsharpqa Smoke' failed&& goto :failure
8078
8179call RunTests.cmd release coreunit
82- @ if ERRORLEVEL1 echo Error: 'RunTests.cmd release coreunit' failed&& goto :eof
80+ @ if ERRORLEVEL1 echo Error: 'RunTests.cmd release coreunit' failed&& goto :failure
8381
8482popd
83+
84+ goto :eof
85+
86+ :failure
87+ exit /b1