Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit a6c036b

Browse files
committed
Build should fail when tests fail
1 parent 1886901 commit a6c036b

3 files changed

Lines changed: 11 additions & 16 deletions

File tree

appveyor.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ init:
1111
}
1212
1313
build_script:
14+
# Ensure we have no dangling MSBuild processes that might lock the output assemblies
15+
- cmd: taskkill /f /im MSBuild.exe /fi "memusage gt 40" 2>NUL
1416
- cmd: build.cmd %BuildArgs%
17+
# Ensure we leave no dangling MSBuild processes
18+
- cmd: taskkill /f /im MSBuild.exe /fi "memusage gt 40" 2>NUL
1519

1620
install:
1721
- cmd: git submodule update --init --recursive

build.cmd

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@ IF "%msb%"=="" (
1313
)
1414

1515
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
16-
PUSHD "%~dp0" >NUL
1716

1817
IF EXIST .nuget\nuget.exe goto restore
1918
IF NOT EXIST .nuget md .nuget
2019
echo Downloading latest version of NuGet.exe...
21-
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://dist.nuget.org/win-x86-commandline/latest/nuget.exe' -OutFile .nuget/nuget.exe"
20+
@powershell -NoProfile -ExecutionPolicy RemoteSigned -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://dist.nuget.org/win-x86-commandline/latest/nuget.exe' -OutFile .nuget/nuget.exe"
2221

2322
:restore
2423
:: Build script packages have no version in the path, so we install them to .nuget\packages to avoid conflicts with
@@ -31,15 +30,4 @@ IF "%Verbosity%"=="" (
3130
set Verbosity=minimal
3231
)
3332

34-
:: Ensure we have no dangling MSBuild processes that might lock the output assemblies
35-
taskkill /f /im MSBuild.exe /fi "memusage gt 40" 2>NUL
36-
37-
ECHO ON
38-
"%msb%" build.proj /v:%Verbosity% /nr:true /m %1 %2 %3 %4 %5 %6 %7 %8 %9
39-
@ECHO OFF
40-
41-
:: Ensure we leave no dangling MSBuild processes
42-
taskkill /f /im MSBuild.exe /fi "memusage gt 40" 2>NUL
43-
44-
POPD >NUL
45-
ENDLOCAL
33+
"%msb%" build.proj /v:%Verbosity% %1 %2 %3 %4 %5 %6 %7 %8 %9

build.proj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@
6969
<xunit Assemblies="@(TestAssembly)"
7070
Html="$(Out)\test.html"
7171
Xml="$(Out)\test.xml"
72-
ParallelizeAssemblies="true"
73-
ParallelizeTestCollections="true" />
72+
Reporter="appveyor" />
7473
</Target>
7574

7675
<Target Name="Coverage" DependsOnTargets="Build">
@@ -126,6 +125,10 @@
126125
<Import Project="src\PackageVersion.targets" />
127126

128127
<Target Name="Configure" DependsOnTargets="DownloadNuGet;GetPackageVersion">
128+
<Message Importance="high" Text="************************************************************************************************************************" />
129+
<Message Importance="high" Text="$([System.Environment]::CommandLine)" />
130+
<Message Importance="high" Text="************************************************************************************************************************" />
131+
129132
<Exec Command='"$(NuGet)" Install "$(MSBuildThisFileDirectory)packages.config" -OutputDirectory "$(PackagesPath)" -ExcludeVersion -Verbosity quiet'
130133
StandardOutputImportance="low"
131134
Condition=" '$(PendingRestore)' == 'true' " />

0 commit comments

Comments
 (0)