This repository has been archived by the owner on Oct 11, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
644b125
commit a3e564c
Showing
143 changed files
with
15,171 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<project name="CUSTOM POST ANALYZE" default="go"> | ||
<!-- Project UppercuT - http://projectuppercut.org --> | ||
<property name="build.config.settings" value="__NONE__" overwrite="false" /> | ||
<include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" /> | ||
<property name="path.separator" value="${string::trim(path::combine(' ', ' '))}" /> | ||
<property name="dirs.current" value="${directory::get-current-directory()}" /> | ||
<property name="dirs.current.file" value="${directory::get-parent-directory(project::get-buildfile-path())}" /> | ||
<property name="folder.build_scripts" value="build" overwrite="false" /> | ||
<include buildfile="${dirs.current}${path.separator}${folder.build_scripts}${path.separator}default.build.settings" /> | ||
<property name="build.step.name" value="${project::get-name()}" /> | ||
<property name="build.step.path" value="${project::get-buildfile-path()}" /> | ||
<!-- build step customizations below this --> | ||
|
||
<property name="folder.stylecop_results" value="stylecop" overwrite="false" /> | ||
<property name="dirs.stylecop_results" value="${path::combine(dirs.build_artifacts, folder.stylecop_results)}" overwrite="false" /> | ||
|
||
<property name="file.stylecop_results" value="${project.name}-results.xml" /> | ||
<property name="file.stylecop_report" value="${project.name}-report.html" /> | ||
|
||
<target name="prepare"> | ||
<echo message="Removing and adding ${dirs.stylecop_results}."/> | ||
<delete dir="${dirs.stylecop_results}" failonerror="false" /> | ||
<mkdir dir="${dirs.stylecop_results}" /> | ||
</target> | ||
|
||
<target name="go" depends="run_normal_tasks" /> | ||
<target name="run_normal_tasks" | ||
depends="prepare, analysis" | ||
description="Using StyleCop Analysis to report on the complexity and maintainability of your project(s)." | ||
if="${run.stylecop}" /> | ||
<target name="analysis" if="${run.stylecop}" > | ||
<echo level="Warning" message="Attempting to run StyleCop Analysis. Creating file at ${file.stylecop_results}." /> | ||
<loadtasks assembly="${dirs.lib}${path.separator}NAnt${path.separator}NAnt.Contrib.Tasks.dll" /> | ||
<msbuild project="${dirs.lib}${path.separator}StyleCop${path.separator}StyleCopCheck.proj"> | ||
<arg value="/p:Configuration=${msbuild.configuration}" /> | ||
<arg value="/p:Platform=${msbuild.platform}" /> | ||
<arg value="/p:StyleCopOutputFile=${dirs.stylecop_results}${path.separator}${file.stylecop_results}" /> | ||
</msbuild> | ||
<style style="${dirs.lib}${path.separator}StyleCop${path.separator}StyleCopReport.xsl" in="${dirs.stylecop_results}${path.separator}${file.stylecop_results}" out="${dirs.stylecop_results}${path.separator}${file.stylecop_report}" /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<project name="Packager" default="go"> | ||
<!-- Project UppercuT - http://uppercut.googlecode.com --> | ||
<!-- DO NOT EDIT THIS FILE - Add custom tasks in BuildTasks.Custom folder with file by the same name - find out more at http://uppercut.pbwiki.com --> | ||
<property name="build.config.settings" value="__NONE__" overwrite="false" /> | ||
<include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" /> | ||
<property name="path.separator" value="${string::trim(path::combine(' ', ' '))}" /> | ||
<property name="dirs.current" value="${directory::get-current-directory()}" /> | ||
<property name="dirs.current.file" value="${directory::get-parent-directory(project::get-buildfile-path())}" /> | ||
<property name="folder.build_scripts" value="build" overwrite="false" /> | ||
<include buildfile="${dirs.current}${path.separator}${folder.build_scripts}${path.separator}default.build.settings" /> | ||
<property name="build.step.name" value="${project::get-name()}" /> | ||
<property name="build.step.path" value="${project::get-buildfile-path()}" /> | ||
<!-- build step customizations below this --> | ||
|
||
<target name="go" depends="remove_app_drop_folder, remove_docs_folder, remove_xml_doc_files" /> | ||
|
||
<target name="remove_app_drop_folder"> | ||
<echo level="Warning" message="Removing ${dirs.drop}${path.separator}${folder.app.drop}." /> | ||
<delete> | ||
<fileset basedir="${dirs.drop}${path.separator}${folder.app.drop}"> | ||
<include name="**/*.*" /> | ||
</fileset> | ||
</delete> | ||
<delete dir="${dirs.drop}${path.separator}${folder.app.drop}" failonerror="false" /> | ||
</target> | ||
|
||
<target name="remove_docs_folder"> | ||
<echo level="Warning" message="Removing '${dirs.drop}${path.separator}${folder.documentation}'." /> | ||
<delete> | ||
<fileset basedir="${dirs.drop}${path.separator}${folder.documentation}"> | ||
<include name="**/*.*" /> | ||
</fileset> | ||
</delete> | ||
<delete dir="${dirs.drop}${path.separator}${folder.documentation}" failonerror="false" /> | ||
</target> | ||
|
||
<target name="remove_xml_doc_files"> | ||
<echo level="Warning" message="Removing xml files from the bin folders." /> | ||
<delete> | ||
<fileset basedir="${dirs.drop}${path.separator}_PublishedApplications"> | ||
<include name="**/*.xml" /> | ||
</fileset> | ||
</delete> | ||
</target> | ||
|
||
</project> |
Binary file not shown.
Binary file not shown.
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,4 @@ | ||
<?xml version="1.0" ?> | ||
<uppercut> | ||
<version>1.4.2.0</version> | ||
</uppercut> |
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,32 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<project name="Analyzers" default="go"> | ||
<!-- Project UppercuT - http://projectuppercut.org --> | ||
<!-- DO NOT EDIT THIS FILE - Add custom tasks in BuildTasks.Custom folder with file by the same name - find out more at http://uppercut.pbwiki.com --> | ||
<property name="build.config.settings" value="__NONE__" overwrite="false" /> | ||
<include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" /> | ||
<property name="path.separator" value="${string::trim(path::combine(' ', ' '))}" /> | ||
<property name="dirs.current.file" value="${directory::get-parent-directory(project::get-buildfile-path())}" /> | ||
<include buildfile="${dirs.current.file}${path.separator}default.build.settings" /> | ||
<property name="build.step.name" value="${project::get-name()}" /> | ||
<property name="build.step.path" value="${project::get-buildfile-path()}" /> | ||
<!-- build step customizations below this --> | ||
|
||
<target name="go" depends="run_tasks" /> | ||
|
||
<!-- run_normal_tasks is called from run_tasks unless replace extension exists--> | ||
<target name="run_normal_tasks" | ||
depends="run_analyzers" | ||
description="Analyzing project for quality indicators." | ||
if="${run.analyzers}" /> | ||
|
||
<target name="run_analyzers"> | ||
<nant buildfile="${dirs.build_scripts}${path.separator}analyzers${path.separator}test.step" inheritall="true" if="${run.tests}" /> | ||
<nant buildfile="${dirs.build_scripts}${path.separator}analyzers${path.separator}cover.step" inheritall="true" failonerror="false" if="${run.codecoverage}" /> | ||
<nant buildfile="${dirs.build_scripts}${path.separator}analyzers${path.separator}ndepend.step" inheritall="true" failonerror="false" if="${run.ndepend}" /> | ||
<nant buildfile="${dirs.build_scripts}${path.separator}analyzers${path.separator}nitriq.step" inheritall="true" failonerror="false" if="${run.nitriq}" /> | ||
<nant buildfile="${dirs.build_scripts}${path.separator}analyzers${path.separator}metrics.step" inheritall="true" failonerror="false" if="${run.metrics}" /> | ||
<nant buildfile="${dirs.build_scripts}${path.separator}analyzers${path.separator}fxcop.step" inheritall="true" failonerror="false" if="${run.fxcop}" /> | ||
<nant buildfile="${dirs.build_scripts}${path.separator}analyzers${path.separator}moma.step" inheritall="true" failonerror="false" if="${run.moma}" /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<project name="CoverageRunner" default="go"> | ||
<!-- Project UppercuT - http://projectuppercut.org --> | ||
<!-- DO NOT EDIT THIS FILE - Add custom tasks in BuildTasks.Custom folder with file by the same name - find out more at http://uppercut.pbwiki.com --> | ||
<property name="build.config.settings" value="__NONE__" overwrite="false" /> | ||
<include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" /> | ||
<property name="path.separator" value="${string::trim(path::combine(' ', ' '))}" /> | ||
<property name="dirs.current.file" value="${directory::get-parent-directory(project::get-buildfile-path())}" /> | ||
<include buildfile="${dirs.current.file}${path.separator}..${path.separator}default.build.settings" /> | ||
<property name="build.step.name" value="${project::get-name()}" /> | ||
<property name="build.step.path" value="${project::get-buildfile-path()}" /> | ||
<!-- build step customizations below this --> | ||
|
||
<target name="go" depends="load_uppercut_assemblies, run_tasks" /> | ||
|
||
<!-- run_normal_tasks is called from run_tasks unless replace extension exists --> | ||
<target name="run_normal_tasks" | ||
depends="run_coverage" | ||
description="Analysing project for test coverage." | ||
if="${run.codecoverage}" /> | ||
|
||
<target name="run_coverage"> | ||
<nant buildfile="${dirs.build_scripts}${path.separator}analyzers${path.separator}ncover.cover.step" inheritall="true" if="${cover.framework == 'ncover'}" /> | ||
<nant buildfile="${dirs.build_scripts}${path.separator}analyzers${path.separator}opencover.cover.step" inheritall="true" if="${cover.framework == 'opencover'}" /> | ||
<call target="set_normal_failure_mode" /> | ||
</target> | ||
|
||
<target name="open_results"> | ||
<nant buildfile="${dirs.build_scripts}${path.separator}analyzers${path.separator}ncover.cover.step" target="open_results" inheritall="true" if="${cover.framework == 'ncover'}" /> | ||
<nant buildfile="${dirs.build_scripts}${path.separator}analyzers${path.separator}opencover.cover.step" target="open_results" inheritall="true" if="${cover.framework == 'opencover'}" /> | ||
</target> | ||
|
||
<target name="set_normal_failure_mode"> | ||
<property name="nant.onfailure" value="fail" /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<project name="FxCop Code Analysis" default="go"> | ||
<!-- Project UppercuT - http://projectuppercut.org --> | ||
<!-- DO NOT EDIT THIS FILE - Add custom tasks in BuildTasks.Custom folder with file by the same name - find out more at http://uppercut.pbwiki.com --> | ||
<property name="build.config.settings" value="__NONE__" overwrite="false" /> | ||
<include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" /> | ||
<property name="path.separator" value="${string::trim(path::combine(' ', ' '))}" /> | ||
<property name="dirs.current.file" value="${directory::get-parent-directory(project::get-buildfile-path())}" /> | ||
<include buildfile="${dirs.current.file}${path.separator}..${path.separator}default.build.settings" /> | ||
<property name="build.step.name" value="${project::get-name()}" /> | ||
<property name="build.step.path" value="${project::get-buildfile-path()}" /> | ||
<!-- build step customizations below this --> | ||
|
||
<property name="folder.fxcop_results" value="fxcop" overwrite="false" /> | ||
<property name="dirs.fxcop_results" value="${path::combine(dirs.build_artifacts, folder.fxcop_results)}" overwrite="false" /> | ||
|
||
<property name="file.fxcop_results" value="${project.name}-results.xml" /> | ||
<property name="args.fxcop" value="/searchgac /o:"${dirs.fxcop_results}${path.separator}${file.fxcop_results}"" /> | ||
<property name="args.fxcop" value="/searchgac /o:"${dirs.fxcop_results}${path.separator}${file.fxcop_results}" /p:"${file.fxcop_project}"" if="${file::exists(file.fxcop_project)}" /> | ||
|
||
<property name="fail.build.on.error" value="false" /> | ||
|
||
<target name="go" depends="load_uppercut_assemblies, run_tasks" /> | ||
|
||
<target name="prepare"> | ||
<echo message="Removing and adding ${dirs.fxcop_results}."/> | ||
<delete dir="${dirs.fxcop_results}" failonerror="false" /> | ||
<mkdir dir="${dirs.fxcop_results}" /> | ||
</target> | ||
|
||
<!-- run_normal_tasks is called from run_tasks unless replace extension exists--> | ||
<target name="run_normal_tasks" | ||
depends="get_regular_dlls, analysis" | ||
description="Using FxCop Code Analysis to report on the complexity and maintainability of your project(s)." | ||
if="${run.fxcop and file::exists(app.fxcop)}" /> | ||
|
||
<target name="get_regular_dlls"> | ||
<echo message="Getting output dlls based on name in directory ${path::get-full-path(dirs.build.code)}." /> | ||
<property name="dll.names" value="" /> | ||
<property name="dll.args" value="" /> | ||
<foreach item="File" property="dll.filename"> | ||
<in> | ||
<items> | ||
<exclude name="${dirs.build.code}${path.separator}lib${path.separator}**" /> | ||
<exclude name="${dirs.build.code}${path.separator}_PublishedApplications${path.separator}**" /> | ||
<exclude name="${dirs.build.code}${path.separator}**${path.separator}NUnit*.dll" /> | ||
<exclude name="${dirs.build.code}${path.separator}**${path.separator}MbUnit*.dll" /> | ||
<exclude name="${dirs.build.code}${path.separator}**${path.separator}TestFu.dll" /> | ||
<exclude name="${dirs.build.code}${path.separator}**${path.separator}QuickGraph*.dll" /> | ||
<exclude name="${dirs.build.code}${path.separator}**${path.separator}Refly*.dll" /> | ||
<exclude name="${dirs.build.code}${path.separator}**${path.separator}Rhino.Mocks*.dll" /> | ||
<exclude name="${dirs.build.code}${path.separator}**${path.separator}*bdd*.dll" /> | ||
<exclude name="${dirs.build.code}${path.separator}**${path.separator}*Test*dll" /> | ||
<exclude name="${dirs.build.code}${path.separator}**${path.separator}*Spec*dll" /> | ||
<include name="${dirs.build.code}${path.separator}${project.name}*dll" /> | ||
<include name="${dirs.build.code}${path.separator}*exe" /> | ||
</items> | ||
</in> | ||
<do> | ||
<property name="dll.names" value="${dll.names + ' ' + string::replace(string::replace(dll.filename,path::get-full-path(dirs.build.code) + '\',''),'\',path.separator) + ''}" /> | ||
<property name="dll.args" value="${dll.args + ' /f:"' + string::replace(string::replace(dll.filename,path::get-full-path(dirs.build.code) + '\',''),'\',path.separator) + '"'}" /> | ||
</do> | ||
</foreach> | ||
|
||
<property name="dlls.regular" value="${dll.names}" /> | ||
<echo level="Warning" message="Running FxCop Code Analysis against these files - ${dlls.regular}." /> | ||
|
||
<property name="args.fxcop" value="${dll.args} ${args.fxcop}" /> | ||
</target> | ||
|
||
<target name="analysis" if="${file::exists(app.fxcop)}" > | ||
<echo level="Warning" message="Attempting to run FxCop Code Analysis with args '${args.fxcop}'. Creating file at ${file.fxcop_results}." /> | ||
|
||
<exec program="${app.fxcop}" | ||
workingdir="${dirs.build.code}" | ||
failonerror="${fail.build.on.error}" | ||
if="${platform::is-windows()}" | ||
> | ||
<arg value="${args.fxcop}" /> | ||
</exec> | ||
<exec program="mono" | ||
workingdir="${dirs.build.code}" | ||
failonerror="${fail.build.on.error}" | ||
if="${platform::is-unix()}" | ||
> | ||
<arg value='"${app.fxcop}"' /> | ||
<arg value="${args.fxcop}" /> | ||
</exec> | ||
</target> | ||
</project> |
Oops, something went wrong.