uppercutbuild 0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/NDepend.xml +251 -0
- data/lib/build.bat +32 -0
- data/lib/build/Castle.Core.dll +0 -0
- data/lib/build/Castle.DynamicProxy2.dll +0 -0
- data/lib/build/Castle.MicroKernel.dll +0 -0
- data/lib/build/Castle.Windsor.dll +0 -0
- data/lib/build/UppercuT.xml +5 -0
- data/lib/build/analyze.step +78 -0
- data/lib/build/analyzers/gallio.test.step +145 -0
- data/lib/build/analyzers/mbunit2.test.step +146 -0
- data/lib/build/analyzers/moma.step +143 -0
- data/lib/build/analyzers/ncover.step +186 -0
- data/lib/build/analyzers/ndepend.step +95 -0
- data/lib/build/analyzers/nitriq.step +116 -0
- data/lib/build/analyzers/nunit.test.step +172 -0
- data/lib/build/analyzers/test.step +99 -0
- data/lib/build/compile.step +178 -0
- data/lib/build/customize.bat +41 -0
- data/lib/build/customize.build +76 -0
- data/lib/build/customizers/item.template +50 -0
- data/lib/build/default.build +164 -0
- data/lib/build/deploymentBuilder.step +103 -0
- data/lib/build/environmentBuilder.step +119 -0
- data/lib/build/generateBuildInfo.step +106 -0
- data/lib/build/ilmerge.build +174 -0
- data/lib/build/open.build +103 -0
- data/lib/build/package.step +234 -0
- data/lib/build/policyChecks.step +81 -0
- data/lib/build/updateAssemblies.build +107 -0
- data/lib/build/uppercut.dll +0 -0
- data/lib/build/uppercut.tasks.dll +0 -0
- data/lib/build/versionBuilder.step +148 -0
- data/lib/build/versioners/git.step +106 -0
- data/lib/build/versioners/hg.step +106 -0
- data/lib/build/versioners/svn.step +112 -0
- data/lib/build/versioners/tfs.step +104 -0
- data/lib/build/zip.build +162 -0
- data/lib/deployment/scripts/database.deploy +37 -0
- data/lib/deployment/templates/AppDeployment.bat +9 -0
- data/lib/deployment/templates/DBDeployment.RESTORE.bat +9 -0
- data/lib/deployment/templates/DBDeployment.bat +9 -0
- data/lib/lib/MbUnit2/MbUnit.AddIn.dll +0 -0
- data/lib/lib/MbUnit2/MbUnit.Cons.exe +0 -0
- data/lib/lib/MbUnit2/MbUnit.Cons.exe.config +12 -0
- data/lib/lib/MbUnit2/MbUnit.Framework.2.0.dll +0 -0
- data/lib/lib/MbUnit2/MbUnit.Framework.XML +6929 -0
- data/lib/lib/MbUnit2/MbUnit.Framework.dll +0 -0
- data/lib/lib/MbUnit2/MbUnit.GUI.exe +0 -0
- data/lib/lib/MbUnit2/MbUnit.GUI.exe.config +14 -0
- data/lib/lib/MbUnit2/MbUnit.MSBuild.Tasks.dll +0 -0
- data/lib/lib/MbUnit2/NAnt.Core.dll +0 -0
- data/lib/lib/MbUnit2/NGraphviz.Helpers.dll +0 -0
- data/lib/lib/MbUnit2/NGraphviz.Layout.dll +0 -0
- data/lib/lib/MbUnit2/NGraphviz.dll +0 -0
- data/lib/lib/MbUnit2/QuickGraph.Algorithms.Graphviz.dll +0 -0
- data/lib/lib/MbUnit2/QuickGraph.Algorithms.dll +0 -0
- data/lib/lib/MbUnit2/QuickGraph.dll +0 -0
- data/lib/lib/MbUnit2/Refly.dll +0 -0
- data/lib/lib/MbUnit2/TestDriven.Framework.dll +0 -0
- data/lib/lib/MbUnit2/TestFu.XML +1932 -0
- data/lib/lib/MbUnit2/TestFu.dll +0 -0
- data/lib/lib/MbUnit2/XsdTidy.exe +0 -0
- data/lib/lib/MoMA/Definitions/2.4.0.1-defs.zip +0 -0
- data/lib/lib/MoMA/ICSharpCode.SharpZipLib.dll +0 -0
- data/lib/lib/MoMA/MoMA.Analyzer.dll +0 -0
- data/lib/lib/MoMA/MoMA.exe +0 -0
- data/lib/lib/MoMA/Mono.Cecil.dll +0 -0
- data/lib/lib/MoMA/Reports/Media/fail.png +0 -0
- data/lib/lib/MoMA/Reports/Media/minus.png +0 -0
- data/lib/lib/MoMA/Reports/Media/moma.css +117 -0
- data/lib/lib/MoMA/Reports/Media/moma.js +17 -0
- data/lib/lib/MoMA/Reports/Media/pass.png +0 -0
- data/lib/lib/MoMA/Reports/Media/plus.png +0 -0
- data/lib/lib/MoMA/Resources/button_ok.png +0 -0
- data/lib/lib/MoMA/Resources/dialog-warning.png +0 -0
- data/lib/lib/MoMA/Resources/dialogback.png +0 -0
- data/lib/lib/MoMA/Resources/list-add.png +0 -0
- data/lib/lib/MoMA/Resources/list-directory.png +0 -0
- data/lib/lib/MoMA/Resources/list-remove.png +0 -0
- data/lib/lib/MoMA/Resources/monoback.png +0 -0
- data/lib/lib/MoMA/Resources/spinner.gif +0 -0
- data/lib/lib/NAnt/CollectionGen.dll +0 -0
- data/lib/lib/NAnt/Interop.MsmMergeTypeLib.dll +0 -0
- data/lib/lib/NAnt/Interop.StarTeam.dll +0 -0
- data/lib/lib/NAnt/Interop.WindowsInstaller.dll +0 -0
- data/lib/lib/NAnt/MSITaskErrors.mst +0 -0
- data/lib/lib/NAnt/MSITaskTemplate.msi +0 -0
- data/lib/lib/NAnt/MSMTaskErrors.mst +0 -0
- data/lib/lib/NAnt/MSMTaskTemplate.msm +0 -0
- data/lib/lib/NAnt/MbUnit.Framework.dll +0 -0
- data/lib/lib/NAnt/MbUnit.Tasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.CompressionTasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.Contrib.Tasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.Core.dll +0 -0
- data/lib/lib/NAnt/NAnt.DotNetTasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.MSNetTasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.NUnit.dll +0 -0
- data/lib/lib/NAnt/NAnt.NUnit1Tasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.NUnit2Tasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.SourceControlTasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.VSNetTasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.VisualCppTasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.Win32Tasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.exe +0 -0
- data/lib/lib/NAnt/NAnt.exe.config +2126 -0
- data/lib/lib/NAnt/NCoverExplorer.NAntTasks.dll +0 -0
- data/lib/lib/NAnt/NDepend.Build.NAntTasks.dll +0 -0
- data/lib/lib/NAnt/NDoc.Documenter.NAnt.dll +0 -0
- data/lib/lib/NAnt/QuickGraph.Algorithms.dll +0 -0
- data/lib/lib/NAnt/QuickGraph.dll +0 -0
- data/lib/lib/NAnt/SLiNgshoT.Core.dll +0 -0
- data/lib/lib/NAnt/SLiNgshoT.exe +0 -0
- data/lib/lib/NAnt/SourceSafe.Interop.dll +0 -0
- data/lib/lib/NAnt/ThoughtWorks.CruiseControl.MSBuild.dll +0 -0
- data/lib/lib/NAnt/extensions/common/2.0/NAnt.MSBuild.dll +0 -0
- data/lib/lib/NAnt/extensions/common/2.0/NAnt.MSBuild.xml +36 -0
- data/lib/lib/NAnt/lib/common/1.1/nunit-console-runner.dll +0 -0
- data/lib/lib/NAnt/lib/common/1.1/nunit-console.exe +0 -0
- data/lib/lib/NAnt/lib/common/1.1/nunit.core.dll +0 -0
- data/lib/lib/NAnt/lib/common/1.1/nunit.framework.dll +0 -0
- data/lib/lib/NAnt/lib/common/1.1/nunit.util.dll +0 -0
- data/lib/lib/NAnt/lib/common/2.0/nunit-console-runner.dll +0 -0
- data/lib/lib/NAnt/lib/common/2.0/nunit-console.exe +0 -0
- data/lib/lib/NAnt/lib/common/2.0/nunit.core.dll +0 -0
- data/lib/lib/NAnt/lib/common/2.0/nunit.framework.dll +0 -0
- data/lib/lib/NAnt/lib/common/2.0/nunit.util.dll +0 -0
- data/lib/lib/NAnt/lib/common/neutral/ICSharpCode.SharpCvsLib.Console.dll +0 -0
- data/lib/lib/NAnt/lib/common/neutral/ICSharpCode.SharpCvsLib.dll +0 -0
- data/lib/lib/NAnt/lib/common/neutral/ICSharpCode.SharpZipLib.dll +0 -0
- data/lib/lib/NAnt/lib/common/neutral/NDoc.Core.dll +0 -0
- data/lib/lib/NAnt/lib/common/neutral/NDoc.Documenter.Msdn.dll +0 -0
- data/lib/lib/NAnt/lib/common/neutral/NDoc.ExtendedUI.dll +0 -0
- data/lib/lib/NAnt/lib/common/neutral/NUnitCore.dll +0 -0
- data/lib/lib/NAnt/lib/mono/1.0/NDoc.Core.dll +0 -0
- data/lib/lib/NAnt/lib/mono/1.0/NDoc.Documenter.Msdn.dll +0 -0
- data/lib/lib/NAnt/lib/mono/1.0/NDoc.ExtendedUI.dll +0 -0
- data/lib/lib/NAnt/lib/mono/1.0/nunit.core.dll +0 -0
- data/lib/lib/NAnt/lib/mono/1.0/nunit.framework.dll +0 -0
- data/lib/lib/NAnt/lib/mono/1.0/nunit.util.dll +0 -0
- data/lib/lib/NAnt/lib/mono/2.0/NDoc.Core.dll +0 -0
- data/lib/lib/NAnt/lib/mono/2.0/NDoc.Documenter.Msdn.dll +0 -0
- data/lib/lib/NAnt/lib/mono/2.0/NDoc.ExtendedUI.dll +0 -0
- data/lib/lib/NAnt/lib/mono/2.0/nunit.core.dll +0 -0
- data/lib/lib/NAnt/lib/mono/2.0/nunit.framework.dll +0 -0
- data/lib/lib/NAnt/lib/mono/2.0/nunit.util.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.0/NDoc.Core.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.0/NDoc.Documenter.Msdn.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.0/NDoc.ExtendedUI.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.0/nunit-console-runner.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.0/nunit-console.exe +0 -0
- data/lib/lib/NAnt/lib/net/1.0/nunit.core.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.0/nunit.framework.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.0/nunit.util.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.1/NDoc.Core.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.1/NDoc.Documenter.Msdn.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.1/NDoc.ExtendedUI.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.1/nunit.core.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.1/nunit.framework.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.1/nunit.util.dll +0 -0
- data/lib/lib/NAnt/lib/net/2.0/NDoc.Core.dll +0 -0
- data/lib/lib/NAnt/lib/net/2.0/NDoc.Documenter.Msdn.dll +0 -0
- data/lib/lib/NAnt/lib/net/2.0/NDoc.ExtendedUI.dll +0 -0
- data/lib/lib/NAnt/lib/net/2.0/nunit.core.dll +0 -0
- data/lib/lib/NAnt/lib/net/2.0/nunit.framework.dll +0 -0
- data/lib/lib/NAnt/lib/net/2.0/nunit.util.dll +0 -0
- data/lib/lib/NAnt/log4net.dll +0 -0
- data/lib/lib/NAnt/scvs.exe +0 -0
- data/lib/lib/NCover/ActiproEULA.html +287 -0
- data/lib/lib/NCover/ActiproSoftware.Shared.Net11.dll +0 -0
- data/lib/lib/NCover/ActiproSoftware.SyntaxEditor.Net11.dll +0 -0
- data/lib/lib/NCover/ActiproSoftware.WinUICore.Net11.dll +0 -0
- data/lib/lib/NCover/CommandBars.dll +0 -0
- data/lib/lib/NCover/ConsoleConfig.xsd +123 -0
- data/lib/lib/NCover/ConsoleExample.config +94 -0
- data/lib/lib/NCover/CoverLib.dll +0 -0
- data/lib/lib/NCover/Coverage.xsl +339 -0
- data/lib/lib/NCover/CoverageReport.xsl +468 -0
- data/lib/lib/NCover/ICSharpCode.TextEditor.dll +0 -0
- data/lib/lib/NCover/LicencePersonal.rtf +334 -0
- data/lib/lib/NCover/MSVCP80.dll +0 -0
- data/lib/lib/NCover/MSVCR80.dll +0 -0
- data/lib/lib/NCover/Microsoft.VC80.CRT.manifest +8 -0
- data/lib/lib/NCover/NCover.Console.exe +0 -0
- data/lib/lib/NCover/NCover.Console.exe.config +6 -0
- data/lib/lib/NCover/NCover.Framework.dll +0 -0
- data/lib/lib/NCover/NCoverExplorer.Console.exe +0 -0
- data/lib/lib/NCover/NCoverExplorer.Core.dll +0 -0
- data/lib/lib/NCover/NCoverExplorer.NCoverRunner.dll +0 -0
- data/lib/lib/NCover/NCoverExplorer.WinForms.dll +0 -0
- data/lib/lib/NCover/NCoverExplorer.exe +0 -0
- data/lib/lib/NCover/NCoverExplorer.exe.config +8 -0
- data/lib/lib/NCover/NCoverExplorerFAQ.html +303 -0
- data/lib/lib/NCover/NCoverExplorerReleaseNotes.html +874 -0
- data/lib/lib/NCover/NCoverFAQ.html +429 -0
- data/lib/lib/NCover/VC80CRT.MAN +15 -0
- data/lib/lib/NCover/license.txt +299 -0
- data/lib/lib/NUnit/NUnitTests.config +84 -0
- data/lib/lib/NUnit/NUnitTests.nunit +14 -0
- data/lib/lib/NUnit/agent.conf +4 -0
- data/lib/lib/NUnit/agent.log.conf +18 -0
- data/lib/lib/NUnit/framework/nunit.framework.dll +0 -0
- data/lib/lib/NUnit/framework/nunit.framework.xml +10113 -0
- data/lib/lib/NUnit/framework/nunit.mocks.dll +0 -0
- data/lib/lib/NUnit/framework/pnunit.framework.dll +0 -0
- data/lib/lib/NUnit/launcher.log.conf +18 -0
- data/lib/lib/NUnit/lib/Failure.png +0 -0
- data/lib/lib/NUnit/lib/Ignored.png +0 -0
- data/lib/lib/NUnit/lib/Inconclusive.png +0 -0
- data/lib/lib/NUnit/lib/Skipped.png +0 -0
- data/lib/lib/NUnit/lib/Success.png +0 -0
- data/lib/lib/NUnit/lib/fit.dll +0 -0
- data/lib/lib/NUnit/lib/log4net.dll +0 -0
- data/lib/lib/NUnit/lib/nunit-console-runner.dll +0 -0
- data/lib/lib/NUnit/lib/nunit-gui-runner.dll +0 -0
- data/lib/lib/NUnit/lib/nunit.core.dll +0 -0
- data/lib/lib/NUnit/lib/nunit.core.interfaces.dll +0 -0
- data/lib/lib/NUnit/lib/nunit.fixtures.dll +0 -0
- data/lib/lib/NUnit/lib/nunit.uiexception.dll +0 -0
- data/lib/lib/NUnit/lib/nunit.uikit.dll +0 -0
- data/lib/lib/NUnit/lib/nunit.util.dll +0 -0
- data/lib/lib/NUnit/nunit-agent-x86.exe +0 -0
- data/lib/lib/NUnit/nunit-agent-x86.exe.config +76 -0
- data/lib/lib/NUnit/nunit-agent.exe +0 -0
- data/lib/lib/NUnit/nunit-agent.exe.config +76 -0
- data/lib/lib/NUnit/nunit-console-x86.exe +0 -0
- data/lib/lib/NUnit/nunit-console-x86.exe.config +76 -0
- data/lib/lib/NUnit/nunit-console.exe +0 -0
- data/lib/lib/NUnit/nunit-console.exe.config +76 -0
- data/lib/lib/NUnit/nunit-x86.exe +0 -0
- data/lib/lib/NUnit/nunit-x86.exe.config +91 -0
- data/lib/lib/NUnit/nunit.exe +0 -0
- data/lib/lib/NUnit/nunit.exe.config +91 -0
- data/lib/lib/NUnit/nunit.framework.dll +0 -0
- data/lib/lib/NUnit/pnunit-agent.exe +0 -0
- data/lib/lib/NUnit/pnunit-agent.exe.config +77 -0
- data/lib/lib/NUnit/pnunit-launcher.exe +0 -0
- data/lib/lib/NUnit/pnunit-launcher.exe.config +77 -0
- data/lib/lib/NUnit/pnunit.framework.dll +0 -0
- data/lib/lib/NUnit/pnunit.tests.dll +0 -0
- data/lib/lib/NUnit/runpnunit.bat +2 -0
- data/lib/lib/NUnit/test.conf +24 -0
- data/lib/lib/NUnit/tests/loadtest-assembly.dll +0 -0
- data/lib/lib/NUnit/tests/mock-assembly.dll +0 -0
- data/lib/lib/NUnit/tests/nonamespace-assembly.dll +0 -0
- data/lib/lib/NUnit/tests/nunit-console.tests.dll +0 -0
- data/lib/lib/NUnit/tests/nunit-gui.tests.dll +0 -0
- data/lib/lib/NUnit/tests/nunit.core.tests.dll +0 -0
- data/lib/lib/NUnit/tests/nunit.fixtures.tests.dll +0 -0
- data/lib/lib/NUnit/tests/nunit.framework.dll +0 -0
- data/lib/lib/NUnit/tests/nunit.framework.tests.dll +0 -0
- data/lib/lib/NUnit/tests/nunit.mocks.tests.dll +0 -0
- data/lib/lib/NUnit/tests/nunit.uiexception.tests.dll +0 -0
- data/lib/lib/NUnit/tests/nunit.uikit.tests.dll +0 -0
- data/lib/lib/NUnit/tests/nunit.util.tests.dll +0 -0
- data/lib/lib/NUnit/tests/test-assembly.dll +0 -0
- data/lib/lib/NUnit/tests/test-utilities.dll +0 -0
- data/lib/lib/NUnit/tests/timing-tests.dll +0 -0
- data/lib/open.bat +10 -0
- data/lib/settings/LOCAL.settings +29 -0
- data/lib/settings/SettingsFileReadMe.txt +2 -0
- data/lib/settings/UppercuT.config +73 -0
- data/lib/test.bat +38 -0
- data/lib/zip.bat +23 -0
- metadata +328 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
|
2
|
+
<project name="NDepend" default="go">
|
|
3
|
+
<!-- Project UppercuT - http://projectuppercut.org -->
|
|
4
|
+
<!-- DO NOT EDIT THIS FILE - Add custom tasks in BuildTasks.Custom\Analyzers folder with file by the same name - find out more at http://uppercut.pbwiki.com -->
|
|
5
|
+
<property name="build.config.settings" value="__NONE__" overwrite="false" />
|
|
6
|
+
<include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
|
|
7
|
+
<property name="file.current.no_extension" value="ndepend" />
|
|
8
|
+
<property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
|
|
9
|
+
<property name="path.to.toplevel" value="..\.." />
|
|
10
|
+
<property name="folder.build_scripts" value="build" overwrite="false" />
|
|
11
|
+
<property name="folder.build_scripts_custom" value="build.custom" overwrite="false" />
|
|
12
|
+
<property name="dirs.build_scripts_custom" value="${dirs.current}\${path.to.toplevel}\${folder.build_scripts_custom}\analyzers" />
|
|
13
|
+
<property name="folder.code_build" value="build_output" overwrite="false" />
|
|
14
|
+
<property name="dirs.build" value="${dirs.current}\${path.to.toplevel}\${folder.code_build}" />
|
|
15
|
+
<property name="folder.app.drop" value="${project.name}" overwrite="false" />
|
|
16
|
+
<property name="dirs.build.code" value="${dirs.build}\${folder.app.drop}" overwrite="false" />
|
|
17
|
+
<property name="folder.build_artifacts" value="build_artifacts" overwrite="false" />
|
|
18
|
+
<property name="dirs.build_artifacts" value="${path::get-full-path(dirs.build)}\${folder.build_artifacts}" />
|
|
19
|
+
<property name="app.ndepend" value="C:\Program Files\NDepend\NDepend.Console.exe" overwrite="false" />
|
|
20
|
+
<property name="dirs.ndepend_results" value="${dirs.build_artifacts}\ndepend" />
|
|
21
|
+
<property name="files.ndepend_config" value="${path::get-full-path(dirs.current)}\${path.to.toplevel}\NDepend.xml" />
|
|
22
|
+
<property name="file.custom.step.before" value="${dirs.build_scripts_custom}\${file.current.no_extension}.pre.step" />
|
|
23
|
+
<property name="file.custom.step.after" value="${dirs.build_scripts_custom}\${file.current.no_extension}.post.step" />
|
|
24
|
+
<property name="file.custom.step.replace" value="${dirs.build_scripts_custom}\${file.current.no_extension}.replace.step" />
|
|
25
|
+
<property name="is.replaced" value="false" />
|
|
26
|
+
<property name="fail.build.on.error" value="false" />
|
|
27
|
+
|
|
28
|
+
<target name="go" depends="run_tasks" if="${file::exists(app.ndepend)}" />
|
|
29
|
+
|
|
30
|
+
<target name="run_tasks">
|
|
31
|
+
<echo message="Running ${project::get-name()} tasks." />
|
|
32
|
+
<call target="prepare" if="${target::exists('prepare')}" />
|
|
33
|
+
<call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
|
|
34
|
+
<call target="custom_tasks_replace" if="${target::exists('custom_tasks_replace')}" />
|
|
35
|
+
<call target="run_normal_tasks" if="${not is.replaced}" />
|
|
36
|
+
<call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
|
|
37
|
+
</target>
|
|
38
|
+
|
|
39
|
+
<target name="run_normal_tasks"
|
|
40
|
+
depends="ndepend"
|
|
41
|
+
description="Using NDepend to Analyze project for quality indicators."
|
|
42
|
+
if="${file::exists(app.ndepend)}" />
|
|
43
|
+
|
|
44
|
+
<target name="prepare">
|
|
45
|
+
<echo message="Removing and adding ${dirs.ndepend_results}."/>
|
|
46
|
+
<delete dir="${dirs.ndepend_results}" failonerror="false" />
|
|
47
|
+
<mkdir dir="${dirs.ndepend_results}" />
|
|
48
|
+
</target>
|
|
49
|
+
|
|
50
|
+
<target name="custom_tasks_before">
|
|
51
|
+
<echo message="Running custom tasks if ${file.custom.step.before} exists." />
|
|
52
|
+
<nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="${fail.build.on.error}" />
|
|
53
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.before + '.ps1')}" failonerror="${fail.build.on.error}">
|
|
54
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.ps1')}" />
|
|
55
|
+
</exec>
|
|
56
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.before + '.rb')}" failonerror="${fail.build.on.error}">
|
|
57
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.rb')}" />
|
|
58
|
+
</exec>
|
|
59
|
+
</target>
|
|
60
|
+
|
|
61
|
+
<target name="custom_tasks_replace">
|
|
62
|
+
<echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
|
|
63
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace)}" />
|
|
64
|
+
<nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" failonerror="${fail.build.on.error}" />
|
|
65
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.ps1')}" />
|
|
66
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.replace + '.ps1')}" failonerror="${fail.build.on.error}" >
|
|
67
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.ps1')}" />
|
|
68
|
+
</exec>
|
|
69
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.rb')}" />
|
|
70
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.replace + '.rb')}" failonerror="${fail.build.on.error}" >
|
|
71
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.rb')}" />
|
|
72
|
+
</exec>
|
|
73
|
+
</target>
|
|
74
|
+
|
|
75
|
+
<target name="ndepend" depends="prepare" if="${file::exists(app.ndepend)}">
|
|
76
|
+
<echo message="Attempting to run NDepend at ${app.ndepend} for file ${files.ndepend_config}." />
|
|
77
|
+
|
|
78
|
+
<exec program="${app.ndepend}">
|
|
79
|
+
<arg line="${files.ndepend_config} /OutDir ${dirs.ndepend_results} /InDirs ${path::get-full-path(dirs.build.code)} C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 C:\WINDOWS\Microsoft.NET\Framework\v3.0 C:\WINDOWS\Microsoft.NET\Framework\v3.5" />
|
|
80
|
+
<!-- /EmitVisualNDependBinXml -->
|
|
81
|
+
</exec>
|
|
82
|
+
</target>
|
|
83
|
+
|
|
84
|
+
<target name="custom_tasks_after">
|
|
85
|
+
<echo message="Running custom tasks if ${file.custom.step.after} exists." />
|
|
86
|
+
<nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="${fail.build.on.error}" />
|
|
87
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.after + '.ps1')}" failonerror="${fail.build.on.error}" >
|
|
88
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.ps1')}" />
|
|
89
|
+
</exec>
|
|
90
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.after + '.rb')}" failonerror="${fail.build.on.error}" >
|
|
91
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.rb')}" />
|
|
92
|
+
</exec>
|
|
93
|
+
</target>
|
|
94
|
+
|
|
95
|
+
</project>
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
|
2
|
+
<project name="Nitriq" default="go">
|
|
3
|
+
<!-- Project UppercuT - http://projectuppercut.org -->
|
|
4
|
+
<!-- DO NOT EDIT THIS FILE - Add custom tasks in BuildTasks.Custom\Analyzers folder with file by the same name - find out more at http://uppercut.pbwiki.com -->
|
|
5
|
+
<property name="build.config.settings" value="__NONE__" overwrite="false" />
|
|
6
|
+
<include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
|
|
7
|
+
<property name="file.current.no_extension" value="nitriq" />
|
|
8
|
+
<property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
|
|
9
|
+
<property name="path.to.toplevel" value="..\.." />
|
|
10
|
+
<property name="project.name" value="__SOLUTION_NAME_WITHOUT_SLN_EXTENSION__" overwrite="false" />
|
|
11
|
+
<property name="folder.build_scripts" value="build" overwrite="false" />
|
|
12
|
+
<property name="folder.build_scripts_custom" value="build.custom" overwrite="false" />
|
|
13
|
+
<property name="dirs.build_scripts_custom" value="${dirs.current}\${path.to.toplevel}\${folder.build_scripts_custom}\analyzers" />
|
|
14
|
+
<property name="folder.code_build" value="build_output" overwrite="false" />
|
|
15
|
+
<property name="dirs.build" value="${dirs.current}\${path.to.toplevel}\${folder.code_build}" />
|
|
16
|
+
<property name="folder.app.drop" value="${project.name}" overwrite="false" />
|
|
17
|
+
<property name="dirs.build.code" value="${dirs.build}\${folder.app.drop}" overwrite="false" />
|
|
18
|
+
<property name="folder.build_artifacts" value="build_artifacts" overwrite="false" />
|
|
19
|
+
<property name="dirs.build_artifacts" value="${path::get-full-path(dirs.build)}\${folder.build_artifacts}" />
|
|
20
|
+
|
|
21
|
+
<property name="app.nitriq" value="C:\Program Files (x86)\NimblePros\Nitriq Console + Pro\Nitriq.Console.exe" overwrite="false" />
|
|
22
|
+
<property name="dirs.nitriq_results" value="${dirs.build_artifacts}\nitriq" />
|
|
23
|
+
<property name="files.nitriq_project" value="${path::get-full-path(dirs.current)}\${path.to.toplevel}\nitriq.nitriqProj" />
|
|
24
|
+
<property name="files.nitriq_queries" value="${path::get-full-path(dirs.current)}\${path.to.toplevel}\nitriq.nq" />
|
|
25
|
+
<property name="file.html.nitriq_results" value="${dirs.nitriq_results}\${project.name}.nitriq-results.html" />
|
|
26
|
+
|
|
27
|
+
<property name="file.custom.step.before" value="${dirs.build_scripts_custom}\${file.current.no_extension}.pre.step" />
|
|
28
|
+
<property name="file.custom.step.after" value="${dirs.build_scripts_custom}\${file.current.no_extension}.post.step" />
|
|
29
|
+
<property name="file.custom.step.replace" value="${dirs.build_scripts_custom}\${file.current.no_extension}.replace.step" />
|
|
30
|
+
<property name="is.replaced" value="false" />
|
|
31
|
+
<property name="fail.build.on.error" value="false" />
|
|
32
|
+
|
|
33
|
+
<target name="go" depends="precheck" if="${file::exists(app.nitriq)}" />
|
|
34
|
+
|
|
35
|
+
<target name="precheck">
|
|
36
|
+
<echo message="Attempting to locate console edition of Nitriq." />
|
|
37
|
+
<property name="app.nitriq" value="C:\Program Files (x86)\NimblePros\Nitriq Console + Pro\Nitriq.Console.exe" if="${not file::exists(app.nitriq)}" />
|
|
38
|
+
<property name="app.nitriq" value="C:\Program Files\NimblePros\Nitriq Console + Pro\Nitriq.Console.exe" if="${not file::exists(app.nitriq)}" />
|
|
39
|
+
<call target="run_tasks" if="${file::exists(app.nitriq) and file::exists(files.nitriq_project)}" />
|
|
40
|
+
</target>
|
|
41
|
+
|
|
42
|
+
<target name="run_tasks">
|
|
43
|
+
<echo message="Running ${project::get-name()} tasks." />
|
|
44
|
+
<call target="prepare" if="${target::exists('prepare')}" />
|
|
45
|
+
<call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
|
|
46
|
+
<call target="custom_tasks_replace" if="${target::exists('custom_tasks_replace')}" />
|
|
47
|
+
<call target="run_normal_tasks" if="${not is.replaced}" />
|
|
48
|
+
<call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
|
|
49
|
+
</target>
|
|
50
|
+
|
|
51
|
+
<target name="run_normal_tasks"
|
|
52
|
+
depends="nitriq"
|
|
53
|
+
description="Using Nitriq to Analyze project for quality indicators."
|
|
54
|
+
if="${file::exists(app.nitriq)}" />
|
|
55
|
+
|
|
56
|
+
<target name="prepare">
|
|
57
|
+
<echo message="Removing and adding ${dirs.nitriq_results}."/>
|
|
58
|
+
<delete dir="${dirs.nitriq_results}" failonerror="false" />
|
|
59
|
+
<mkdir dir="${dirs.nitriq_results}" />
|
|
60
|
+
</target>
|
|
61
|
+
|
|
62
|
+
<target name="custom_tasks_before">
|
|
63
|
+
<echo message="Running custom tasks if ${file.custom.step.before} exists." />
|
|
64
|
+
<nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="${fail.build.on.error}" />
|
|
65
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.before + '.ps1')}" failonerror="${fail.build.on.error}">
|
|
66
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.ps1')}" />
|
|
67
|
+
</exec>
|
|
68
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.before + '.rb')}" failonerror="${fail.build.on.error}">
|
|
69
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.rb')}" />
|
|
70
|
+
</exec>
|
|
71
|
+
</target>
|
|
72
|
+
|
|
73
|
+
<target name="custom_tasks_replace">
|
|
74
|
+
<echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
|
|
75
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace)}" />
|
|
76
|
+
<nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" failonerror="${fail.build.on.error}" />
|
|
77
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.ps1')}" />
|
|
78
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.replace + '.ps1')}" failonerror="${fail.build.on.error}" >
|
|
79
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.ps1')}" />
|
|
80
|
+
</exec>
|
|
81
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.rb')}" />
|
|
82
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.replace + '.rb')}" failonerror="${fail.build.on.error}" >
|
|
83
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.rb')}" />
|
|
84
|
+
</exec>
|
|
85
|
+
</target>
|
|
86
|
+
|
|
87
|
+
<target name="nitriq" depends="prepare" if="${file::exists(app.nitriq)}">
|
|
88
|
+
<echo message="Attempting to run Nitriq at ${app.nitriq} for file ${files.nitriq_project}." />
|
|
89
|
+
|
|
90
|
+
<exec program="${app.nitriq}" workingdir="${dirs.build.code}">
|
|
91
|
+
<arg line="${files.nitriq_project} ${files.nitriq_queries} ${file.html.nitriq_results}" />
|
|
92
|
+
</exec>
|
|
93
|
+
</target>
|
|
94
|
+
|
|
95
|
+
<target name="open_results">
|
|
96
|
+
<echo message="Opening results at ${file.html.nitriq_results}."/>
|
|
97
|
+
<exec
|
|
98
|
+
spawn="true"
|
|
99
|
+
program="${environment::get-folder-path('ProgramFiles')}\Internet Explorer\iexplore.exe"
|
|
100
|
+
commandline="${file.html.nitriq_results}"
|
|
101
|
+
>
|
|
102
|
+
</exec>
|
|
103
|
+
</target>
|
|
104
|
+
|
|
105
|
+
<target name="custom_tasks_after">
|
|
106
|
+
<echo message="Running custom tasks if ${file.custom.step.after} exists." />
|
|
107
|
+
<nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="${fail.build.on.error}" />
|
|
108
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.after + '.ps1')}" failonerror="${fail.build.on.error}" >
|
|
109
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.ps1')}" />
|
|
110
|
+
</exec>
|
|
111
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.after + '.rb')}" failonerror="${fail.build.on.error}" >
|
|
112
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.rb')}" />
|
|
113
|
+
</exec>
|
|
114
|
+
</target>
|
|
115
|
+
|
|
116
|
+
</project>
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
|
2
|
+
<project name="NUnitTester" default="go">
|
|
3
|
+
<!-- Project UppercuT - http://projectuppercut.org -->
|
|
4
|
+
<!-- DO NOT EDIT THIS FILE - This follows a convention for testing with Integration tests being separated from Unit tests - find out more at http://uppercut.pbwiki.com -->
|
|
5
|
+
<property name="build.config.settings" value="__NONE__" overwrite="false" />
|
|
6
|
+
<include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
|
|
7
|
+
<property name="file.current.no_extension" value="nunit.test" />
|
|
8
|
+
<property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
|
|
9
|
+
<property name="path.to.toplevel" value="..\.." />
|
|
10
|
+
<property name="folder.build_scripts" value="build" overwrite="false" />
|
|
11
|
+
<property name="folder.build_scripts_custom" value="build.custom" overwrite="false" />
|
|
12
|
+
<property name="dirs.build_scripts_custom" value="${dirs.current}\${path.to.toplevel}\${folder.build_scripts_custom}\analyzers" />
|
|
13
|
+
<property name="folder.code_build" value="build_output" overwrite="false" />
|
|
14
|
+
<property name="dirs.build" value="${dirs.current}\${path.to.toplevel}\${folder.code_build}" />
|
|
15
|
+
<property name="folder.app.drop" value="${project.name}" overwrite="false" />
|
|
16
|
+
<property name="dirs.build.code" value="${dirs.build}\${folder.app.drop}" overwrite="false" />
|
|
17
|
+
<property name="folder.references" value="lib" overwrite="false" />
|
|
18
|
+
<property name="dirs.lib" value="${dirs.current}\${path.to.toplevel}\${folder.references}" overwrite="false" />
|
|
19
|
+
<property name="microsoft.framework" value="net-3.5" overwrite="false" />
|
|
20
|
+
<property name="folder.build_artifacts" value="build_artifacts" overwrite="false" />
|
|
21
|
+
<property name="dirs.build_artifacts" value="${path::get-full-path(dirs.build)}\${folder.build_artifacts}" />
|
|
22
|
+
<property name="dirs.test_results" value="${dirs.build_artifacts}\nunit" overwrite="false" />
|
|
23
|
+
<property name="file.test_results" value="index" overwrite="false" />
|
|
24
|
+
<property name="tests.excluded_categories.comma_separated" value="Database,Integration,Slow,NotWorking,Ignore,database,integration,slow,notworking,ignore" overwrite="false" />
|
|
25
|
+
<property name="test.args" value="/xml="${dirs.test_results}\nunit-results.xml" /nologo /framework=${microsoft.framework}" />
|
|
26
|
+
<property name="test.args.exclude" value="/exclude="${tests.excluded_categories.comma_separated}"" />
|
|
27
|
+
<property name="app.nunit.console" value="${path::get-full-path(dirs.lib)}\NUnit\nunit-console.exe" overwrite="false" />
|
|
28
|
+
<property name="file.custom.step.before" value="${dirs.build_scripts_custom}\${file.current.no_extension}.pre.step" />
|
|
29
|
+
<property name="file.custom.step.after" value="${dirs.build_scripts_custom}\${file.current.no_extension}.post.step" />
|
|
30
|
+
<property name="file.custom.step.replace" value="${dirs.build_scripts_custom}\${file.current.no_extension}.replace.step" />
|
|
31
|
+
<property name="is.replaced" value="false" />
|
|
32
|
+
<property name="fail.build.on.error" value="true" />
|
|
33
|
+
|
|
34
|
+
<target name="go" depends="run_tasks" />
|
|
35
|
+
|
|
36
|
+
<target name="run_all_tests" depends="prepare, set_nunit_failure_mode, get_test_dlls_all, run_tests, generate_report" description="Like go but runs all tests" />
|
|
37
|
+
|
|
38
|
+
<target name="run_tasks">
|
|
39
|
+
<echo message="Running ${project::get-name()} tasks." />
|
|
40
|
+
<call target="prepare" if="${target::exists('prepare')}" />
|
|
41
|
+
<call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
|
|
42
|
+
<call target="custom_tasks_replace" if="${target::exists('custom_tasks_replace')}" />
|
|
43
|
+
<call target="run_normal_tasks" if="${not is.replaced}" />
|
|
44
|
+
<call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
|
|
45
|
+
</target>
|
|
46
|
+
|
|
47
|
+
<target name="run_normal_tasks"
|
|
48
|
+
depends="set_nunit_failure_mode, get_test_dlls, run_tests, generate_report"
|
|
49
|
+
description="Testing with NUnit." />
|
|
50
|
+
|
|
51
|
+
<target name="custom_tasks_before">
|
|
52
|
+
<echo message="Running custom tasks if ${file.custom.step.before} exists." />
|
|
53
|
+
<nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="${fail.build.on.error}" />
|
|
54
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.before + '.ps1')}" failonerror="${fail.build.on.error}">
|
|
55
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.ps1')}" />
|
|
56
|
+
</exec>
|
|
57
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.before + '.rb')}" failonerror="${fail.build.on.error}">
|
|
58
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.rb')}" />
|
|
59
|
+
</exec>
|
|
60
|
+
</target>
|
|
61
|
+
|
|
62
|
+
<target name="custom_tasks_replace">
|
|
63
|
+
<echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
|
|
64
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace)}" />
|
|
65
|
+
<nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" failonerror="${fail.build.on.error}" />
|
|
66
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.ps1')}" />
|
|
67
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.replace + '.ps1')}" failonerror="${fail.build.on.error}" >
|
|
68
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.ps1')}" />
|
|
69
|
+
</exec>
|
|
70
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.rb')}" />
|
|
71
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.replace + '.rb')}" failonerror="${fail.build.on.error}" >
|
|
72
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.rb')}" />
|
|
73
|
+
</exec>
|
|
74
|
+
</target>
|
|
75
|
+
|
|
76
|
+
<target name="prepare">
|
|
77
|
+
<echo message="Removing and adding ${dirs.test_results}."/>
|
|
78
|
+
<delete dir="${dirs.test_results}" failonerror="false" />
|
|
79
|
+
<mkdir dir="${dirs.test_results}" />
|
|
80
|
+
</target>
|
|
81
|
+
|
|
82
|
+
<target name="set_nunit_failure_mode">
|
|
83
|
+
<property name="nant.onfailure" value="generate_report" />
|
|
84
|
+
</target>
|
|
85
|
+
|
|
86
|
+
<target name="get_test_dlls">
|
|
87
|
+
<echo message="Getting test dlls based on name in directory ${path::get-full-path(dirs.build.code)}." />
|
|
88
|
+
<property name="dll.names" value="" />
|
|
89
|
+
<foreach item="File" property="dll.filename">
|
|
90
|
+
<in>
|
|
91
|
+
<items>
|
|
92
|
+
<exclude name="${dirs.build.code}\*Database*dll" />
|
|
93
|
+
<exclude name="${dirs.build.code}\*.Integration*dll" />
|
|
94
|
+
<exclude name="${dirs.build.code}\TestFu.dll" />
|
|
95
|
+
<include name="${dirs.build.code}\*Test*dll" />
|
|
96
|
+
<include name="${dirs.build.code}\*Spec*dll" />
|
|
97
|
+
</items>
|
|
98
|
+
</in>
|
|
99
|
+
<do>
|
|
100
|
+
<property name="dll.names" value="${dll.names + ' ' + path::get-file-name(dll.filename)}" />
|
|
101
|
+
</do>
|
|
102
|
+
</foreach>
|
|
103
|
+
|
|
104
|
+
<property name="dlls.test" value="${dll.names}" />
|
|
105
|
+
<echo message="Running NCover against these test dlls - ${dlls.test}." />
|
|
106
|
+
|
|
107
|
+
<property name="args.test_runner" value="${dlls.test} ${test.args} ${test.args.exclude}" />
|
|
108
|
+
</target>
|
|
109
|
+
|
|
110
|
+
<target name="get_test_dlls_all">
|
|
111
|
+
<echo message="Getting all test dlls (including integration tests) based on name in directory ${path::get-full-path(dirs.build.code)}." />
|
|
112
|
+
<property name="dll.names" value="" />
|
|
113
|
+
<foreach item="File" property="dll.filename">
|
|
114
|
+
<in>
|
|
115
|
+
<items>
|
|
116
|
+
<exclude name="${dirs.build.code}\TestFu.dll" />
|
|
117
|
+
<include name="${dirs.build.code}\*Test*dll" />
|
|
118
|
+
<include name="${dirs.build.code}\*Spec*dll" />
|
|
119
|
+
</items>
|
|
120
|
+
</in>
|
|
121
|
+
<do>
|
|
122
|
+
<property name="dll.names" value="${dll.names + ' ' + path::get-file-name(dll.filename)}" />
|
|
123
|
+
</do>
|
|
124
|
+
</foreach>
|
|
125
|
+
|
|
126
|
+
<property name="dlls.test" value="${dll.names}" />
|
|
127
|
+
<echo message="Running NCover against these test dlls - ${dlls.test}." />
|
|
128
|
+
|
|
129
|
+
<property name="args.test_runner" value="${dlls.test} ${test.args}" />
|
|
130
|
+
</target>
|
|
131
|
+
|
|
132
|
+
<target name="run_tests" depends="prepare" description="Running Unit Tests">
|
|
133
|
+
<echo message="Running tests using NUnit and putting results in ${dirs.test_results}."/>
|
|
134
|
+
|
|
135
|
+
<exec
|
|
136
|
+
program="${app.nunit.console}"
|
|
137
|
+
workingdir="${dirs.build.code}"
|
|
138
|
+
failonerror="true">
|
|
139
|
+
<arg value="${args.test_runner}" />
|
|
140
|
+
</exec>
|
|
141
|
+
</target>
|
|
142
|
+
|
|
143
|
+
<target name="generate_report">
|
|
144
|
+
<nunit2report todir="${dirs.test_results}" failonerror="false" >
|
|
145
|
+
<fileset>
|
|
146
|
+
<include name="${dirs.test_results}\*-results.xml"/>
|
|
147
|
+
</fileset>
|
|
148
|
+
</nunit2report>
|
|
149
|
+
</target>
|
|
150
|
+
|
|
151
|
+
<target name="open_results">
|
|
152
|
+
<echo message="Opening results at ${path::get-full-path(dirs.test_results)}\${file.test_results}.html."/>
|
|
153
|
+
<exec
|
|
154
|
+
spawn="true"
|
|
155
|
+
program="${environment::get-folder-path('ProgramFiles')}\Internet Explorer\iexplore.exe"
|
|
156
|
+
commandline="${path::get-full-path(dirs.test_results)}\${file.test_results}.html"
|
|
157
|
+
>
|
|
158
|
+
</exec>
|
|
159
|
+
</target>
|
|
160
|
+
|
|
161
|
+
<target name="custom_tasks_after">
|
|
162
|
+
<echo message="Running custom tasks if ${file.custom.step.after} exists." />
|
|
163
|
+
<nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="${fail.build.on.error}" />
|
|
164
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.after + '.ps1')}" failonerror="${fail.build.on.error}" >
|
|
165
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.ps1')}" />
|
|
166
|
+
</exec>
|
|
167
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.after + '.rb')}" failonerror="${fail.build.on.error}" >
|
|
168
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.rb')}" />
|
|
169
|
+
</exec>
|
|
170
|
+
</target>
|
|
171
|
+
|
|
172
|
+
</project>
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
|
2
|
+
<project name="TestRunner" default="go">
|
|
3
|
+
<!-- Project UppercuT - http://projectuppercut.org -->
|
|
4
|
+
<!-- DO NOT EDIT THIS FILE - This follows a convention for testing with Integration tests being separated from Unit tests - find out more at http://uppercut.pbwiki.com -->
|
|
5
|
+
<property name="build.config.settings" value="__NONE__" overwrite="false" />
|
|
6
|
+
<include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
|
|
7
|
+
<property name="file.current.no_extension" value="test" />
|
|
8
|
+
<property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
|
|
9
|
+
<property name="path.to.toplevel" value="..\.." />
|
|
10
|
+
<property name="folder.build_scripts" value="build" overwrite="false" />
|
|
11
|
+
<property name="folder.build_scripts_custom" value="build.custom" overwrite="false" />
|
|
12
|
+
<property name="dirs.build_scripts_custom" value="${dirs.current}\${path.to.toplevel}\${folder.build_scripts_custom}\analyzers" />
|
|
13
|
+
<property name="folder.code_build" value="build_output" overwrite="false" />
|
|
14
|
+
<property name="dirs.build" value="${dirs.current}\${path.to.toplevel}\${folder.code_build}" />
|
|
15
|
+
<property name="folder.app.drop" value="${project.name}" overwrite="false" />
|
|
16
|
+
<property name="dirs.build.code" value="${dirs.build}\${folder.app.drop}" overwrite="false" />
|
|
17
|
+
<property name="test.framework" value="mbunit" overwrite="false" />
|
|
18
|
+
<property name="file.custom.step.before" value="${dirs.build_scripts_custom}\${file.current.no_extension}.pre.step" />
|
|
19
|
+
<property name="file.custom.step.after" value="${dirs.build_scripts_custom}\${file.current.no_extension}.post.step" />
|
|
20
|
+
<property name="file.custom.step.replace" value="${dirs.build_scripts_custom}\${file.current.no_extension}.replace.step" />
|
|
21
|
+
<property name="is.replaced" value="false" />
|
|
22
|
+
<property name="fail.build.on.error" value="true" />
|
|
23
|
+
|
|
24
|
+
<target name="go" depends="run_tasks" />
|
|
25
|
+
|
|
26
|
+
<target name="run_tasks">
|
|
27
|
+
<echo message="Running ${project::get-name()} tasks." />
|
|
28
|
+
<call target="prepare" if="${target::exists('prepare')}" />
|
|
29
|
+
<call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
|
|
30
|
+
<call target="custom_tasks_replace" if="${target::exists('custom_tasks_replace')}" />
|
|
31
|
+
<call target="run_normal_tasks" if="${not is.replaced}" />
|
|
32
|
+
<call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
|
|
33
|
+
</target>
|
|
34
|
+
|
|
35
|
+
<target name="run_normal_tasks"
|
|
36
|
+
depends="run_tests"
|
|
37
|
+
description="Testing project for quality." />
|
|
38
|
+
|
|
39
|
+
<target name="custom_tasks_before">
|
|
40
|
+
<echo message="Running custom tasks if ${file.custom.step.before} exists." />
|
|
41
|
+
<nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="${fail.build.on.error}" />
|
|
42
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.before + '.ps1')}" failonerror="${fail.build.on.error}">
|
|
43
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.ps1')}" />
|
|
44
|
+
</exec>
|
|
45
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.before + '.rb')}" failonerror="${fail.build.on.error}">
|
|
46
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.rb')}" />
|
|
47
|
+
</exec>
|
|
48
|
+
</target>
|
|
49
|
+
|
|
50
|
+
<target name="custom_tasks_replace">
|
|
51
|
+
<echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
|
|
52
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace)}" />
|
|
53
|
+
<nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" failonerror="${fail.build.on.error}" />
|
|
54
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.ps1')}" />
|
|
55
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.replace + '.ps1')}" failonerror="${fail.build.on.error}" >
|
|
56
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.ps1')}" />
|
|
57
|
+
</exec>
|
|
58
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.rb')}" />
|
|
59
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.replace + '.rb')}" failonerror="${fail.build.on.error}" >
|
|
60
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.rb')}" />
|
|
61
|
+
</exec>
|
|
62
|
+
</target>
|
|
63
|
+
|
|
64
|
+
<target name="run_tests">
|
|
65
|
+
<nant buildfile="${dirs.current}\mbunit2.test.step" inheritall="true" if="${test.framework=='mbunit2'}" />
|
|
66
|
+
<nant buildfile="${dirs.current}\gallio.test.step" inheritall="true" if="${test.framework=='gallio'}" />
|
|
67
|
+
<nant buildfile="${dirs.current}\nunit.test.step" inheritall="true" if="${test.framework=='nunit'}" />
|
|
68
|
+
<call target="set_normal_failure_mode" />
|
|
69
|
+
</target>
|
|
70
|
+
|
|
71
|
+
<target name="all">
|
|
72
|
+
<nant buildfile="${dirs.current}\mbunit2.test.step" target="run_all_tests" inheritall="true" if="${test.framework=='mbunit2'}" />
|
|
73
|
+
<nant buildfile="${dirs.current}\gallio.test.step" target="run_all_tests" inheritall="true" if="${test.framework=='gallio'}" />
|
|
74
|
+
<nant buildfile="${dirs.current}\nunit.test.step" target="run_all_tests" inheritall="true" if="${test.framework=='nunit'}" />
|
|
75
|
+
<call target="set_normal_failure_mode" />
|
|
76
|
+
</target>
|
|
77
|
+
|
|
78
|
+
<target name="open_results">
|
|
79
|
+
<nant buildfile="${dirs.current}\mbunit2.test.step" target="open_results" inheritall="true" if="${test.framework=='mbunit2'}" />
|
|
80
|
+
<nant buildfile="${dirs.current}\gallio.test.step" target="open_results" inheritall="true" if="${test.framework=='gallio'}" />
|
|
81
|
+
<nant buildfile="${dirs.current}\nunit.test.step" target="open_results" inheritall="true" if="${test.framework=='nunit'}" />
|
|
82
|
+
</target>
|
|
83
|
+
|
|
84
|
+
<target name="set_normal_failure_mode">
|
|
85
|
+
<property name="nant.onfailure" value="fail" />
|
|
86
|
+
</target>
|
|
87
|
+
|
|
88
|
+
<target name="custom_tasks_after">
|
|
89
|
+
<echo message="Running custom tasks if ${file.custom.step.after} exists." />
|
|
90
|
+
<nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="${fail.build.on.error}" />
|
|
91
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.after + '.ps1')}" failonerror="${fail.build.on.error}" >
|
|
92
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.ps1')}" />
|
|
93
|
+
</exec>
|
|
94
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.after + '.rb')}" failonerror="${fail.build.on.error}" >
|
|
95
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.rb')}" />
|
|
96
|
+
</exec>
|
|
97
|
+
</target>
|
|
98
|
+
|
|
99
|
+
</project>
|