forked from x97mdr/pickles
-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x97mdr#13 Added a build script based on NAnt
- Loading branch information
Jeffrey Cameron
committed
Oct 21, 2011
1 parent
a685710
commit 5c43134
Showing
54 changed files
with
34,220 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,4 +46,8 @@ _ReSharper*/ | |
~$* | ||
|
||
#NuGet | ||
packages/ | ||
packages/ | ||
|
||
#build artifacts | ||
deploy/ | ||
reports/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tools\nant-0.85\binaries\nant -buildfile:project.build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<?xml version="1.0"?> | ||
<project name="pickles" default="zip" basedir="."> | ||
<description>Builds and tests the Pickles project</description> | ||
|
||
<!-- set the major and minor version number here --> | ||
<property name="version.major" value="0" /> | ||
<property name="version.minor" value="1" /> | ||
|
||
<!-- set build number from continuous integration tool --> | ||
<if test="${environment::variable-exists('BUILD_NUMBER')}"> | ||
<property name="build.number" value="${environment::get-variable('BUILD_NUMBER')}" /> | ||
</if> | ||
|
||
<ifnot test="${property::exists('build.number')}"> | ||
<property name="build.number" value="0" /> | ||
</ifnot> | ||
|
||
<!-- Set revision number from source control ... note that for git this is difficult to do because it only uses SHA hashes for commits --> | ||
<if test="${environment::variable-exists('SVN_REVISION')}"> | ||
<property name="revision" value="${environment::get-variable('SVN_REVISION')}" /> | ||
</if> | ||
|
||
<if test="${environment::variable-exists('BZR_REVISION')}"> | ||
<property name="revision" value="${environment::get-variable('BZR_REVISION')}" /> | ||
</if> | ||
|
||
<ifnot test="${property::exists('revision')}"> | ||
<property name="revision" value="0" /> | ||
</ifnot> | ||
|
||
<property name="version" value="${version.major}.${version.minor}.${build.number}.0" /> | ||
<property name="msbuild.dir" value="C:\Windows\Microsoft.NET\Framework\v4.0.30319" /> | ||
<property name="deploy.dir" value="deploy" /> | ||
<property name="report.dir" value="reports" /> | ||
<property name="report.nunit.dir" value="${report.dir}\nunit" /> | ||
<property name="assemblies.dir" value="C:\dev\pickles\src\Pickles\Pickles.CommandLine\bin\Release" /> | ||
<property name="merged.dir" value="merged" /> | ||
|
||
<target name="init"> | ||
<mkdir dir="${deploy.dir}" /> | ||
<mkdir dir="${report.nunit.dir}" /> | ||
</target> | ||
|
||
<target name="set" depends="init"> | ||
<exec program="tools\AssemblyInfoUtil.exe"> | ||
<arg value="-setver:${version}" /> | ||
<arg value="src\Pickles\VersionInfo.cs" /> | ||
</exec> | ||
</target> | ||
|
||
<target name="build" depends="set"> | ||
<exec program="msbuild.exe" basedir="${msbuild.dir}"> | ||
<arg value="src\Pickles\Pickles.sln" /> | ||
<arg value="/p:Configuration=Release" /> | ||
<arg value="/p:NoWarn=1591 3001 3002 3003 3005 3008 3009" /> | ||
<arg value="/l:FileLogger,Microsoft.Build.Engine;logfile=build.log;verbosity=detailed;encoding=utf-8" /> | ||
</exec> | ||
</target> | ||
|
||
<target name="test" depends="build"> | ||
<exec program="nunit-console.exe" basedir=".\tools\nunit-2.5.10\bin\net-2.0"> | ||
<arg value="/xml:${report.nunit.dir}\results.xml" /> | ||
<arg value=".\src\Pickles\Pickles.Test\bin\Release\Pickles.Test.dll" /> | ||
</exec> | ||
</target> | ||
|
||
<target name="zip" depends="test"> | ||
<zip zipfile="${deploy.dir}\pickles-${version}.zip"> | ||
<fileset basedir="${assemblies.dir}" prefix="pickles-${version}"> | ||
<include name="**/*" /> | ||
</fileset> | ||
</zip> | ||
</target> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Version information for an assembly consists of the following four values: | ||
// | ||
// Major Version | ||
// Minor Version | ||
// Build Number | ||
// Revision | ||
// | ||
// You can specify all the values or you can default the Build and Revision Numbers | ||
// by using the '*' as shown below: | ||
using System.Reflection; | ||
[assembly: AssemblyVersion("1.0.0.0")] | ||
[assembly: AssemblyFileVersion("1.0.0.0")] |
Binary file not shown.
Oops, something went wrong.