modified build scripts, created (most of) deployment script

This commit is contained in:
tmont 2009-04-20 03:29:20 +00:00
parent 9c7811b93c
commit e23a4e3f11
6 changed files with 45 additions and 6 deletions

39
Deploy.targets Normal file
View File

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="SimpleLog.Targets"/>
<PropertyGroup>
<DeploymentServer>tommymontgomery.com</DeploymentServer>
<UnitTestsDir>$(MSBuildProjectDirectory)\SimpleLog.Tests</UnitTestsDir>
</PropertyGroup>
<Target Name="Deploy" DependsOnTargets="Clean">
<MSBuild Projects="SimpleLog\SimpleLog.csproj" Properties="Configuration=Release"/>
<Message Text="Running unit tests" Importance="High"/>
<CallTarget Targets="RunUnitTests"/>
<CallTarget Targets="CleanUnitTests"/>
<CreateItem Include="$(MSBuildProjectDirectory)\SimpleLog\bin\Release\*.*">
<Output TaskParameter="Include" ItemName="DeploymentFiles"/>
</CreateItem>
<Zip Files="@(DeploymentFiles)" ZipFileName="SimpleLog\bin\Release\SimpleLog.zip" WorkingDirectory="$(MSBuildProjectDirectory)\SimpleLog\bin\Release"/>
</Target>
<Target Name="BuildUnitTests">
<MSBuild Projects="SimpleLog.Tests\SimpleLog.Tests.csproj" Properties="Configuration=Release"/>
</Target>
<Target Name="RunUnitTests" DependsOnTargets="BuildUnitTests">
<CreateItem Include="$(UnitTestsDir)\bin\Release\*.Tests.dll">
<Output TaskParameter="Include" ItemName="UnitTestAssemblies"/>
</CreateItem>
<NUnit ToolPath="c:\code\nunit\bin" Assemblies="@(UnitTestAssemblies)" WorkingDirectory="$(MSBuildProjectDirectory)\SimpleLog.Tests\bin\Release"/>
</Target>
<Target Name="CleanUnitTests">
<RemoveDir Directories="$(UnitTestsDir)\bin;$(UnitTestsDir)\obj"/>
</Target>
</Project>

View File

@ -11,6 +11,7 @@
<RevisionNumber>0</RevisionNumber>
<PropertiesDir>Properties</PropertiesDir>
<BuildDependsOn>
Clean;
ConfigureVersionNumber;
CreateAssemblyInfo;
$(BuildDependsOn)
@ -57,9 +58,7 @@
</Target>
<Target Name="Clean">
<RemoveDir Directories="$(PropertiesDir)"/>
<RemoveDir Directories="bin"/>
<RemoveDir Directories="obj"/>
<RemoveDir Directories="$(PropertiesDir);bin;obj"/>
</Target>
</Project>

View File

@ -1 +1 @@
%WINDIR%\Microsoft.NET\Framework\v3.5\MSBuild.exe /property:Configuration=Debug SimpleLog.sln
%WINDIR%\Microsoft.NET\Framework\v3.5\MSBuild.exe /nologo /property:Configuration=Debug SimpleLog.sln

View File

@ -1 +1 @@
%WINDIR%\Microsoft.NET\Framework\v3.5\MSBuild.exe /property:Configuration=Release SimpleLog/SimpleLog.csproj
%WINDIR%\Microsoft.NET\Framework\v3.5\MSBuild.exe /nologo /property:Configuration=Release SimpleLog/SimpleLog.csproj

View File

@ -1 +1 @@
%WINDIR%\Microsoft.NET\Framework\v3.5\MSBuild.exe /target:Clean SimpleLog.sln
%WINDIR%\Microsoft.NET\Framework\v3.5\MSBuild.exe /nologo /target:Clean SimpleLog.sln

1
deploy.bat Normal file
View File

@ -0,0 +1 @@
%WINDIR%\Microsoft.NET\Framework\v3.5\MSBuild.exe /nologo /target:Deploy Deploy.targets