Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updated build scripts

  • Loading branch information...
commit 2770493d0d371950c838f02390224ac2c3930500 1 parent 577b0b1
@shiftbot shiftbot authored
Showing with 23 additions and 13 deletions.
  1. +2 −13 build.cmd
  2. +21 −0 build.proj
View
15 build.cmd
@@ -1,18 +1,7 @@
@echo Off
set config=%1
if "%config%" == "" (
- set config=debug
+ set config=Debug
)
-:: compile the code
-%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild src/SomeProject.sln /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false
-
-:: remove all obj folder contents
-for /D %%f in (".\tests\*") do @(
-del /S /Q "%%f\obj\*"
-)
-
-:: find all test files and run them
-for /R %%F in (*Tests.dll) do (
-.\tools\xunit\xunit.console.clr4.exe %%F
-)
+%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild build.proj /p:Configuration="%config%" /t:AppHarbor /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false
View
21 build.proj
@@ -0,0 +1,21 @@
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+
+ <UsingTask AssemblyFile=".\tools\xunit\xunit.runner.msbuild.dll" TaskName="Xunit.Runner.MSBuild.xunit" />
+
+ <Target Name="Compile">
+ <Message Text=" ===========Building Project===========" Importance="High" />
+ <MSBuild Projects="./src/Pretzel.sln" Properties="Configuration=$(Configuration)" />
+ </Target>
+
+ <Target Name="Test" DependsOnTargets="Compile">
+
+ <Message Text="===========Tests===========" Importance="High" />
+
+ <ItemGroup>
+ <TestFiles Include=".\**\bin\$(Configuration)\*Tests.dll" />
+ </ItemGroup>
+
+ <xunit Assembly="@(TestFiles)" />
+ </Target>
+
+</Project>
Please sign in to comment.
Something went wrong with that request. Please try again.