Skip to content

Commit

Permalink
Add first version of CI build script
Browse files Browse the repository at this point in the history
  • Loading branch information
nulltoken committed Apr 19, 2011
1 parent e9578a4 commit d6ef60d
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 4 deletions.
22 changes: 22 additions & 0 deletions CI-build.msbuild
@@ -0,0 +1,22 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition="'$(Configuration)' == ''">Release</Configuration>
</PropertyGroup>

<Target Name="Clean">
<ItemGroup>
<BuildFiles Include="$(MSBuildProjectDirectory)\LibGit2Sharp\obj" />
<BuildFiles Include="$(MSBuildProjectDirectory)\LibGit2Sharp\bin" />
<BuildFiles Include="$(MSBuildProjectDirectory)\LibGit2Sharp.Tests\obj" />
<BuildFiles Include="$(MSBuildProjectDirectory)\LibGit2Sharp.Tests\bin" />
</ItemGroup>
<RemoveDir Directories="@(BuildFiles)" />
</Target>

<Target Name="Build" DependsOnTargets="Clean">
<MSBuild
Projects="LibGit2Sharp.sln"
Targets="Build"
Properties="Configuration=$(Configuration);TrackFileAccess=false"/>
</Target>
</Project>
4 changes: 2 additions & 2 deletions LibGit2Sharp.Tests/LibGit2Sharp.Tests.csproj
Expand Up @@ -17,15 +17,15 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\Net35\</OutputPath>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>TRACE;DEBUG;NET35</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\Net35\</OutputPath>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand Down
4 changes: 2 additions & 2 deletions LibGit2Sharp/LibGit2Sharp.csproj
Expand Up @@ -18,7 +18,7 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\Net35\</OutputPath>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>TRACE;DEBUG;NET35</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand All @@ -28,7 +28,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\Net35\</OutputPath>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand Down
6 changes: 6 additions & 0 deletions runBuild.cmd
@@ -0,0 +1,6 @@
set FrameworkVersion=v4.0.30319
set FrameworkDir=%SystemRoot%\Microsoft.NET\Framework

"%FrameworkDir%\%FrameworkVersion%\msbuild.exe" CI-build.msbuild

exit /B %ERRORLEVEL%

0 comments on commit d6ef60d

Please sign in to comment.