Skip to content

Commit

Permalink
update buildscript to only run tests once
Browse files Browse the repository at this point in the history
  • Loading branch information
tonerdo committed May 2, 2018
1 parent 9435f73 commit e8785cd
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@
<Target Name="RunTests" AfterTargets="CopyMSBuildScripts">
<Exec Command="dotnet test $(MSBuildThisFileDirectory)test\coverlet.core.tests\coverlet.core.tests.csproj -c $(Configuration) /p:CollectCoverage=true /p:CoverletOutputFormat=opencover"/>
</Target>

<Target Name="RunTestsWithExclude" AfterTargets="RunTests">
<Exec Command="dotnet test --no-build $(MSBuildThisFileDirectory)test\coverlet.core.tests\coverlet.core.tests.csproj -c $(Configuration) /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude=\&quot;../../src/coverlet.core/Instrumentation/**/*.cs,$(MSBuildThisFileDirectory)/src/coverlet.core/Reporters/**/*.cs\&quot;"/>
</Target>

<Target Name="CreateNuGetPackage" AfterTargets="RunTestsWithExclude" Condition="$(Configuration) == 'Release'">
<Exec Command="dotnet pack $(MSBuildThisFileDirectory)src\coverlet.msbuild.tasks\coverlet.msbuild.tasks.csproj -c $(Configuration) -o $(OutputPath) /p:NuspecFile=$(NuspecFile)" />
Expand Down

0 comments on commit e8785cd

Please sign in to comment.