modified build scripts, created (most of) deployment script
This commit is contained in:
parent
9c7811b93c
commit
e23a4e3f11
39
Deploy.targets
Normal file
39
Deploy.targets
Normal 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>
|
@ -11,6 +11,7 @@
|
|||||||
<RevisionNumber>0</RevisionNumber>
|
<RevisionNumber>0</RevisionNumber>
|
||||||
<PropertiesDir>Properties</PropertiesDir>
|
<PropertiesDir>Properties</PropertiesDir>
|
||||||
<BuildDependsOn>
|
<BuildDependsOn>
|
||||||
|
Clean;
|
||||||
ConfigureVersionNumber;
|
ConfigureVersionNumber;
|
||||||
CreateAssemblyInfo;
|
CreateAssemblyInfo;
|
||||||
$(BuildDependsOn)
|
$(BuildDependsOn)
|
||||||
@ -57,9 +58,7 @@
|
|||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="Clean">
|
<Target Name="Clean">
|
||||||
<RemoveDir Directories="$(PropertiesDir)"/>
|
<RemoveDir Directories="$(PropertiesDir);bin;obj"/>
|
||||||
<RemoveDir Directories="bin"/>
|
|
||||||
<RemoveDir Directories="obj"/>
|
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
1
deploy.bat
Normal file
@ -0,0 +1 @@
|
|||||||
|
%WINDIR%\Microsoft.NET\Framework\v3.5\MSBuild.exe /nologo /target:Deploy Deploy.targets
|
Loading…
Reference in New Issue
Block a user