diff --git a/.build.custom/analyze.replace.step b/.build.custom/analyze.replace.step deleted file mode 100644 index afb6bc8..0000000 --- a/.build.custom/analyze.replace.step +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build.custom/default.replace.build b/.build.custom/default.replace.build deleted file mode 100644 index 25035ff..0000000 --- a/.build.custom/default.replace.build +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build.custom/nugetPrepare.post.step b/.build.custom/nugetPrepare.post.step deleted file mode 100644 index 81d1b17..0000000 --- a/.build.custom/nugetPrepare.post.step +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/Castle.Core.dll b/.build/Castle.Core.dll deleted file mode 100644 index 8e86a7c..0000000 Binary files a/.build/Castle.Core.dll and /dev/null differ diff --git a/.build/Castle.Windsor.dll b/.build/Castle.Windsor.dll deleted file mode 100644 index 49c20a3..0000000 Binary files a/.build/Castle.Windsor.dll and /dev/null differ diff --git a/.build/UppercuT.xml b/.build/UppercuT.xml deleted file mode 100644 index 38e16b3..0000000 --- a/.build/UppercuT.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - 1.4.2.0 - diff --git a/.build/analyze.step b/.build/analyze.step deleted file mode 100644 index 7f5f257..0000000 --- a/.build/analyze.step +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/analyzers/cover.step b/.build/analyzers/cover.step deleted file mode 100644 index 90793ca..0000000 --- a/.build/analyzers/cover.step +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/analyzers/fxcop.step b/.build/analyzers/fxcop.step deleted file mode 100644 index f16c371..0000000 --- a/.build/analyzers/fxcop.step +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/.build/analyzers/gallio.test.step b/.build/analyzers/gallio.test.step deleted file mode 100644 index a8c8077..0000000 --- a/.build/analyzers/gallio.test.step +++ /dev/null @@ -1,108 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/analyzers/mbunit2.test.step b/.build/analyzers/mbunit2.test.step deleted file mode 100644 index ffb49d0..0000000 --- a/.build/analyzers/mbunit2.test.step +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/analyzers/metrics.step b/.build/analyzers/metrics.step deleted file mode 100644 index 504ec49..0000000 --- a/.build/analyzers/metrics.step +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/.build/analyzers/moma.step b/.build/analyzers/moma.step deleted file mode 100644 index 4841e9b..0000000 --- a/.build/analyzers/moma.step +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/analyzers/ncover.cover.step b/.build/analyzers/ncover.cover.step deleted file mode 100644 index caef7b2..0000000 --- a/.build/analyzers/ncover.cover.step +++ /dev/null @@ -1,150 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/analyzers/ndepend.step b/.build/analyzers/ndepend.step deleted file mode 100644 index 0b6f3ec..0000000 --- a/.build/analyzers/ndepend.step +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/analyzers/nitriq.step b/.build/analyzers/nitriq.step deleted file mode 100644 index aa2a23b..0000000 --- a/.build/analyzers/nitriq.step +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/analyzers/nunit.test.step b/.build/analyzers/nunit.test.step deleted file mode 100644 index 8e59db7..0000000 --- a/.build/analyzers/nunit.test.step +++ /dev/null @@ -1,157 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/analyzers/opencover.cover.step b/.build/analyzers/opencover.cover.step deleted file mode 100644 index a6c851d..0000000 --- a/.build/analyzers/opencover.cover.step +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/.build/analyzers/storevil.test.step b/.build/analyzers/storevil.test.step deleted file mode 100644 index db5a975..0000000 --- a/.build/analyzers/storevil.test.step +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/analyzers/test.step b/.build/analyzers/test.step deleted file mode 100644 index 034a794..0000000 --- a/.build/analyzers/test.step +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/analyzers/xunit.test.step b/.build/analyzers/xunit.test.step deleted file mode 100644 index 7528a8f..0000000 --- a/.build/analyzers/xunit.test.step +++ /dev/null @@ -1,118 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/compile.step b/.build/compile.step deleted file mode 100644 index 7521076..0000000 --- a/.build/compile.step +++ /dev/null @@ -1,330 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/csharp.functions b/.build/csharp.functions deleted file mode 100644 index c7bb966..0000000 --- a/.build/csharp.functions +++ /dev/null @@ -1,85 +0,0 @@ - - - - diff --git a/.build/customize.bat b/.build/customize.bat deleted file mode 100644 index 86413c2..0000000 --- a/.build/customize.bat +++ /dev/null @@ -1,41 +0,0 @@ -@echo off - -::Project UppercuT - http://uppercut.googlecode.com -::No edits to this file are required - http://uppercut.pbwiki.com - -if '%1' == '' goto usage -if '%2' == '' goto usage -if '%3' NEQ '' goto usage -if '%1' == '/?' goto usage -if '%1' == '-?' goto usage -if '%1' == '?' goto usage -if '%1' == '/help' goto usage - -SET step.name=%1 -SET step.type=%2 - - -SET DIR=%~d0%~p0% -SET NANT="%DIR%..\lib\Nant\nant.exe" -SET build.config.settings="%DIR%..\.uppercut" - -%NANT% /f:.\customize.build -D:build.config.settings=%build.config.settings% -D:customize.step.name=%step.name% -D:customize.step.type=%step.type% - -if %ERRORLEVEL% NEQ 0 goto errors - -goto finish - -:usage -echo. -echo Usage: customize.bat stepName customizeType -echo stepName is the name of the item -echo customizeType is "pre" "post" or "replace" -echo . -echo Example: customize package.step post -echo. -goto finish - -:errors -EXIT /B %ERRORLEVEL% - -:finish \ No newline at end of file diff --git a/.build/customize.build b/.build/customize.build deleted file mode 100644 index c08ce94..0000000 --- a/.build/customize.build +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/customizers/item.template b/.build/customizers/item.template deleted file mode 100644 index 716c07c..0000000 --- a/.build/customizers/item.template +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/default.build b/.build/default.build deleted file mode 100644 index 32e019d..0000000 --- a/.build/default.build +++ /dev/null @@ -1,163 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/deploymentBuilder.step b/.build/deploymentBuilder.step deleted file mode 100644 index ee7baa4..0000000 --- a/.build/deploymentBuilder.step +++ /dev/null @@ -1,104 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/environmentBuilder.step b/.build/environmentBuilder.step deleted file mode 100644 index eac9d01..0000000 --- a/.build/environmentBuilder.step +++ /dev/null @@ -1,102 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/.build/gemsBuild.step b/.build/gemsBuild.step deleted file mode 100644 index 4b18dc0..0000000 --- a/.build/gemsBuild.step +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/gemsPrepare.step b/.build/gemsPrepare.step deleted file mode 100644 index 3fceda5..0000000 --- a/.build/gemsPrepare.step +++ /dev/null @@ -1,127 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${assembly.version.full}${version.gem.suffix} - - ${assembly.version.full}.${gem.build.date}${version.gem.suffix} - - - \ No newline at end of file diff --git a/.build/generateBuildInfo.step b/.build/generateBuildInfo.step deleted file mode 100644 index 556a1f4..0000000 --- a/.build/generateBuildInfo.step +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${project.name} - ${string::replace(string::replace(company.name,'&','&'),'&','&')} - ${version.major} - ${version.minor} - ${version.patch} - ${version.build} - ${version.revision} - ${version.full} - ${repository.path} - ${microsoft.framework} - ${msbuild.configuration} - ${msbuild.platform} - UppercuT v. ${version.uppercut} -]]> - - - - \ No newline at end of file diff --git a/.build/ilmerge.build b/.build/ilmerge.build deleted file mode 100644 index dcd6570..0000000 --- a/.build/ilmerge.build +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/manifestBuilder.step b/.build/manifestBuilder.step deleted file mode 100644 index 62c36e7..0000000 --- a/.build/manifestBuilder.step +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/nugetBuild.step b/.build/nugetBuild.step deleted file mode 100644 index a74a422..0000000 --- a/.build/nugetBuild.step +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/.build/nugetPrepare.step b/.build/nugetPrepare.step deleted file mode 100644 index 788bfce..0000000 --- a/.build/nugetPrepare.step +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${assembly.version.full} -]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/obfuscate.step b/.build/obfuscate.step deleted file mode 100644 index d61bf6a..0000000 --- a/.build/obfuscate.step +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/open.build b/.build/open.build deleted file mode 100644 index deebf4a..0000000 --- a/.build/open.build +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/package.step b/.build/package.step deleted file mode 100644 index 5ff5fe3..0000000 --- a/.build/package.step +++ /dev/null @@ -1,232 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/policyChecks.step b/.build/policyChecks.step deleted file mode 100644 index cfaa7ab..0000000 --- a/.build/policyChecks.step +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/uc.exe b/.build/uc.exe deleted file mode 100644 index 6b5c61a..0000000 Binary files a/.build/uc.exe and /dev/null differ diff --git a/.build/uc.exe.config b/.build/uc.exe.config deleted file mode 100644 index cb2586b..0000000 --- a/.build/uc.exe.config +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/.build/updateAssemblies.build b/.build/updateAssemblies.build deleted file mode 100644 index a92cfae..0000000 --- a/.build/updateAssemblies.build +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/uppercut.dll b/.build/uppercut.dll deleted file mode 100644 index 2a033ab..0000000 Binary files a/.build/uppercut.dll and /dev/null differ diff --git a/.build/uppercut.tasks.dll b/.build/uppercut.tasks.dll deleted file mode 100644 index 782899b..0000000 Binary files a/.build/uppercut.tasks.dll and /dev/null differ diff --git a/.build/versionBuilder.step b/.build/versionBuilder.step deleted file mode 100644 index c4eb650..0000000 --- a/.build/versionBuilder.step +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/versioners/git.step b/.build/versioners/git.step deleted file mode 100644 index 9dc5f43..0000000 --- a/.build/versioners/git.step +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/versioners/hg.step b/.build/versioners/hg.step deleted file mode 100644 index 8ed6e8b..0000000 --- a/.build/versioners/hg.step +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/versioners/svn.step b/.build/versioners/svn.step deleted file mode 100644 index 0e56827..0000000 --- a/.build/versioners/svn.step +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/versioners/tfs.step b/.build/versioners/tfs.step deleted file mode 100644 index aef20c9..0000000 --- a/.build/versioners/tfs.step +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.build/zip.build b/.build/zip.build deleted file mode 100644 index 2f76f2c..0000000 --- a/.build/zip.build +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.gitignore b/.gitignore index 7c268a0..048efcf 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,7 @@ obj _ReSharper* /packages App_Data - +.vs *.suo *.user @@ -33,3 +33,10 @@ Thumbs.db # Project Specific !gems/bin +# Build related +tools/** +!tools/packages.config +!tools/Addins/packages.config +!tools/Modules/packages.config +BuildArtifacts/ +code_drop/ \ No newline at end of file diff --git a/.teamcity/pom.xml b/.teamcity/pom.xml new file mode 100644 index 0000000..8349313 --- /dev/null +++ b/.teamcity/pom.xml @@ -0,0 +1,104 @@ + + + 4.0.0 + Checksum Config DSL Script + Checksum + Checksum_dsl + 1.0-SNAPSHOT + + + org.jetbrains.teamcity + configs-dsl-kotlin-parent + 1.0-SNAPSHOT + + + + + jetbrains-all + https://download.jetbrains.com/teamcity-repository + + true + + + + teamcity-server + https://teamcityserver/app/dsl-plugins-repository + + true + + + + + + + JetBrains + https://download.jetbrains.com/teamcity-repository + + + + + ${basedir} + + + kotlin-maven-plugin + org.jetbrains.kotlin + ${kotlin.version} + + + + + compile + process-sources + + compile + + + + test-compile + process-test-sources + + test-compile + + + + + + org.jetbrains.teamcity + teamcity-configs-maven-plugin + ${teamcity.dsl.version} + + kotlin + target/generated-configs + + + + + + + + org.jetbrains.teamcity + configs-dsl-kotlin + ${teamcity.dsl.version} + compile + + + org.jetbrains.teamcity + configs-dsl-kotlin-plugins + 1.0-SNAPSHOT + pom + compile + + + org.jetbrains.kotlin + kotlin-stdlib-jdk8 + ${kotlin.version} + compile + + + org.jetbrains.kotlin + kotlin-script-runtime + ${kotlin.version} + compile + + + \ No newline at end of file diff --git a/.teamcity/settings.kts b/.teamcity/settings.kts new file mode 100644 index 0000000..c42541f --- /dev/null +++ b/.teamcity/settings.kts @@ -0,0 +1,75 @@ +import jetbrains.buildServer.configs.kotlin.v2019_2.* +import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.script +import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.powerShell +import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.pullRequests +import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.xmlReport +import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.XmlReport +import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.nuGetPublish +import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.vcs +import jetbrains.buildServer.configs.kotlin.v2019_2.vcs.GitVcsRoot + +version = "2021.2" + +project { + buildType(Checksum) +} + +object Checksum : BuildType({ + id = AbsoluteId("Checksum") + name = "Build" + + artifactRules = """ + """.trimIndent() + + params { + param("env.vcsroot.branch", "%vcsroot.branch%") + param("env.Git_Branch", "%teamcity.build.vcs.branch.Checksum_ChecksumVcsRoot%") + param("teamcity.git.fetchAllHeads", "true") + } + + vcs { + root(DslContext.settingsRoot) + + branchFilter = """ + +:* + """.trimIndent() + } + + steps { + powerShell { + name = "Prerequisites" + scriptMode = script { + content = """ + choco install windows-sdk-7.1 netfx-4.8-devpack visualstudio2022-workload-manageddesktopbuildtools --confirm --no-progress + exit ${'$'}LastExitCode + """.trimIndent() + } + } + + step { + name = "Include Signing Keys" + type = "PrepareSigningEnvironment" + } + + script { + name = "Call Cake" + scriptContent = "call build.official.bat --verbosity=diagnostic --target=CI --testExecutionType=all --shouldRunOpenCover=false" + } + } + + triggers { + vcs { + branchFilter = "" + } + } + + features { + pullRequests { + provider = github { + authType = token { + token = "%system.GitHubPAT%" + } + } + } + } +}) diff --git a/.templates/default/create/footer.sbn b/.templates/default/create/footer.sbn new file mode 100644 index 0000000..f6ba18e --- /dev/null +++ b/.templates/default/create/footer.sbn @@ -0,0 +1,10 @@ +{{ if config.create.include_footer }} + +### {{ config.create.footer_heading }} + +{{ if config.create.milestone_replace_text + replace_milestone_title config.create.footer_content config.create.milestone_replace_text milestone.target.title + else + config.create.footer_content + end +end }} diff --git a/.templates/default/index.sbn b/.templates/default/index.sbn new file mode 100644 index 0000000..ff7eac8 --- /dev/null +++ b/.templates/default/index.sbn @@ -0,0 +1,10 @@ +{{- + include 'release-info' + if milestone.target.description + include 'milestone' + end + include 'issues' | string.rstrip + if template_kind == "CREATE" + include 'create/footer' + end +~}} diff --git a/.templates/default/issue-details.sbn b/.templates/default/issue-details.sbn new file mode 100644 index 0000000..9fa3cce --- /dev/null +++ b/.templates/default/issue-details.sbn @@ -0,0 +1,5 @@ +### {{ issue_label }} + +{{ for issue in issues.items[issue_label] + include 'issue-note' +end }} diff --git a/.templates/default/issue-note.sbn b/.templates/default/issue-note.sbn new file mode 100644 index 0000000..dbc4cf0 --- /dev/null +++ b/.templates/default/issue-note.sbn @@ -0,0 +1 @@ +- {{ issue.title }} - see [#{{ issue.number }}]({{ issue.html_url }}) diff --git a/.templates/default/issues.sbn b/.templates/default/issues.sbn new file mode 100644 index 0000000..33e5201 --- /dev/null +++ b/.templates/default/issues.sbn @@ -0,0 +1,4 @@ + +{{ for issue_label in issue_labels + include 'issue-details' +end }} diff --git a/.templates/default/milestone.sbn b/.templates/default/milestone.sbn new file mode 100644 index 0000000..a3349b2 --- /dev/null +++ b/.templates/default/milestone.sbn @@ -0,0 +1,2 @@ + +{{ milestone.target.description }} diff --git a/.templates/default/release-info.sbn b/.templates/default/release-info.sbn new file mode 100644 index 0000000..8410ca5 --- /dev/null +++ b/.templates/default/release-info.sbn @@ -0,0 +1,10 @@ +{{ + if issues.count > 0 + if commits.count > 0 +}}As part of this release we had [{{ commits.count }} {{ commits.count | string.pluralize "commit" "commits" }}]({{ commits.html_url }}) which resulted in [{{ issues.count }} {{ issues.count | string.pluralize "issue" "issues" }}]({{ milestone.target.html_url }}?closed=1) being closed. +{{ else +}}As part of this release we had [{{ issues.count }} {{ issues.count | string.pluralize "issue" "issues" }}]({{ milestone.target.html_url }}?closed=1) closed. +{{ end + else if commits.count > 0 +}}As part of this release we had [{{ commits.count }} {{ commits.count | string.pluralize "commit" "commits" }}]({{ commits.html_url }}). +{{ end -}} diff --git a/.uppercut b/.uppercut deleted file mode 100644 index 14094d8..0000000 --- a/.uppercut +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/build.bat b/build.bat index bc1ae8b..8a69bbd 100644 --- a/build.bat +++ b/build.bat @@ -1,31 +1,11 @@ -@echo off - -::Project UppercuT - http://uppercut.googlecode.com -::No edits to this file are required - http://uppercut.pbwiki.com - -if '%1' == '/?' goto usage -if '%1' == '-?' goto usage -if '%1' == '?' goto usage -if '%1' == '/help' goto usage - -SET DIR=%cd% -SET BUILD_DIR=%~d0%~p0% -SET NANT="%BUILD_DIR%lib\Nant\nant.exe" -SET build.config.settings="%DIR%\.uppercut" - -%NANT% /logger:"NAnt.Core.DefaultLogger" /quiet /nologo /f:"%BUILD_DIR%.build\default.build" -D:build.config.settings=%build.config.settings% %* - -if %ERRORLEVEL% NEQ 0 goto errors - -goto finish - -:usage -echo. -echo Usage: build.bat -echo. -goto finish - -:errors -EXIT /B %ERRORLEVEL% - -:finish \ No newline at end of file +@echo off +set psscript="%~dp0build.ps1" +echo ================================================== +echo ============= WRAP POWERSHELL SCRIPT ============= +echo ================================================== + +echo calling %psscript% with args %* +PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '%psscript%' %*" +set buildstatus=%ERRORLEVEL% +echo ================================================== +exit /b %buildstatus% \ No newline at end of file diff --git a/build.debug.bat b/build.debug.bat new file mode 100644 index 0000000..417cf08 --- /dev/null +++ b/build.debug.bat @@ -0,0 +1,11 @@ +@echo off +set psscript="%~dp0build.ps1" +echo ================================================== +echo ============= WRAP POWERSHELL SCRIPT ============= +echo ================================================== + +echo calling %psscript% with args %* +PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '%psscript%' -Configuration Debug %*" +set buildstatus=%ERRORLEVEL% +echo ================================================== +exit /b %buildstatus% diff --git a/build.debug.sh b/build.debug.sh new file mode 100644 index 0000000..ea7734a --- /dev/null +++ b/build.debug.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +set -eo pipefail + +./build.sh --configuration=Debug $* \ No newline at end of file diff --git a/build.official.bat b/build.official.bat new file mode 100644 index 0000000..66bad5b --- /dev/null +++ b/build.official.bat @@ -0,0 +1,11 @@ +@echo off +set psscript="%~dp0build.ps1" +echo ================================================== +echo ============= WRAP POWERSHELL SCRIPT ============= +echo ================================================== + +echo calling %psscript% with args %* +PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '%psscript%' -Configuration ReleaseOfficial %*" +set buildstatus=%ERRORLEVEL% +echo ================================================== +exit /b %buildstatus% diff --git a/build.official.sh b/build.official.sh new file mode 100644 index 0000000..aa3f59f --- /dev/null +++ b/build.official.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +set -eo pipefail + +./build.sh --configuration=ReleaseOfficial $* \ No newline at end of file diff --git a/build.ps1 b/build.ps1 new file mode 100644 index 0000000..adfb281 --- /dev/null +++ b/build.ps1 @@ -0,0 +1,249 @@ +########################################################################## +# This is the Cake bootstrapper script for PowerShell. +# This file was downloaded from https://github.com/cake-build/resources +# Feel free to change this file to fit your needs. +########################################################################## + +<# + +.SYNOPSIS +This is a Powershell script to bootstrap a Cake build. + +.DESCRIPTION +This Powershell script will download NuGet if missing, restore NuGet tools (including Cake) +and execute your Cake build script with the parameters you provide. + +.PARAMETER Script +The build script to execute. +.PARAMETER Target +The build script target to run. +.PARAMETER Configuration +The build configuration to use. +.PARAMETER Verbosity +Specifies the amount of information to be displayed. +.PARAMETER ShowDescription +Shows description about tasks. +.PARAMETER DryRun +Performs a dry run. +.PARAMETER SkipToolPackageRestore +Skips restoring of packages. +.PARAMETER ScriptArgs +Remaining arguments are added here. + +.LINK +https://cakebuild.net + +#> + +[CmdletBinding()] +Param( + [string]$Script = "recipe.cake", + [string]$Target, + [string]$Configuration, + [ValidateSet("Quiet", "Minimal", "Normal", "Verbose", "Diagnostic")] + [string]$Verbosity, + [switch]$ShowDescription, + [Alias("WhatIf", "Noop")] + [switch]$DryRun, + [switch]$SkipToolPackageRestore, + [Parameter(Position=0,Mandatory=$false,ValueFromRemainingArguments=$true)] + [string[]]$ScriptArgs +) + +# Attempt to set highest encryption available for SecurityProtocol. +# PowerShell will not set this by default (until maybe .NET 4.6.x). This +# will typically produce a message for PowerShell v2 (just an info +# message though) +try +{ + # Set TLS 1.2 (3072), then TLS 1.1 (768), then TLS 1.0 (192), finally SSL 3.0 (48) + # Use integers because the enumeration values for TLS 1.2 and TLS 1.1 won't + # exist in .NET 4.0, even though they are addressable if .NET 4.5+ is + # installed (.NET 4.5 is an in-place upgrade). + [System.Net.ServicePointManager]::SecurityProtocol = 3072 -bor 768 -bor 192 +} catch { + Write-Output 'Unable to set PowerShell to use TLS 1.2 and TLS 1.1 due to old .NET Framework installed. If you see underlying connection closed or trust errors, you may need to upgrade to .NET Framework 4.5+ and PowerShell v3' +} + +[Reflection.Assembly]::LoadWithPartialName("System.Security") | Out-Null +function MD5HashFile([string] $filePath) +{ + if ([string]::IsNullOrEmpty($filePath) -or !(Test-Path $filePath -PathType Leaf)) + { + return $null + } + + [System.IO.Stream] $file = $null; + [System.Security.Cryptography.MD5] $md5 = $null; + try + { + $md5 = [System.Security.Cryptography.MD5]::Create() + $file = [System.IO.File]::OpenRead($filePath) + return [System.BitConverter]::ToString($md5.ComputeHash($file)) + } + finally + { + if ($file -ne $null) + { + $file.Dispose() + } + } +} + +function GetProxyEnabledWebClient +{ + $wc = New-Object System.Net.WebClient + $proxy = [System.Net.WebRequest]::GetSystemWebProxy() + $proxy.Credentials = [System.Net.CredentialCache]::DefaultCredentials + $wc.Proxy = $proxy + return $wc +} + +Write-Host "Preparing to run build script..." + +if(!$PSScriptRoot){ + $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent +} + +$TOOLS_DIR = Join-Path $PSScriptRoot "tools" +$ADDINS_DIR = Join-Path $TOOLS_DIR "Addins" +$MODULES_DIR = Join-Path $TOOLS_DIR "Modules" +$NUGET_EXE = Join-Path $TOOLS_DIR "nuget.exe" +$CAKE_EXE = Join-Path $TOOLS_DIR "Cake/Cake.exe" +$NUGET_URL = "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" +$PACKAGES_CONFIG = Join-Path $TOOLS_DIR "packages.config" +$PACKAGES_CONFIG_MD5 = Join-Path $TOOLS_DIR "packages.config.md5sum" +$ADDINS_PACKAGES_CONFIG = Join-Path $ADDINS_DIR "packages.config" +$MODULES_PACKAGES_CONFIG = Join-Path $MODULES_DIR "packages.config" + +# Make sure tools folder exists +if ((Test-Path $PSScriptRoot) -and !(Test-Path $TOOLS_DIR)) { + Write-Verbose -Message "Creating tools directory..." + New-Item -Path $TOOLS_DIR -Type directory | out-null +} + +# Make sure that packages.config exist. +if (!(Test-Path $PACKAGES_CONFIG)) { + Write-Verbose -Message "Downloading packages.config..." + try { + $wc = GetProxyEnabledWebClient + $wc.DownloadFile("https://cakebuild.net/download/bootstrapper/packages", $PACKAGES_CONFIG) + } catch { + Throw "Could not download packages.config." + } +} + +# Try find NuGet.exe in path if not exists +if (!(Test-Path $NUGET_EXE)) { + Write-Verbose -Message "Trying to find nuget.exe in PATH..." + $existingPaths = $Env:Path -Split ';' | Where-Object { (![string]::IsNullOrEmpty($_)) -and (Test-Path $_ -PathType Container) } + $NUGET_EXE_IN_PATH = Get-ChildItem -Path $existingPaths -Filter "nuget.exe" | Select -First 1 + if ($NUGET_EXE_IN_PATH -ne $null -and (Test-Path $NUGET_EXE_IN_PATH.FullName)) { + Write-Verbose -Message "Found in PATH at $($NUGET_EXE_IN_PATH.FullName)." + $NUGET_EXE = $NUGET_EXE_IN_PATH.FullName + } +} + +# Try download NuGet.exe if not exists +if (!(Test-Path $NUGET_EXE)) { + Write-Verbose -Message "Downloading NuGet.exe..." + try { + $wc = GetProxyEnabledWebClient + $wc.DownloadFile($NUGET_URL, $NUGET_EXE) + } catch { + Throw "Could not download NuGet.exe." + } +} + +# Save nuget.exe path to environment to be available to child processed +$ENV:NUGET_EXE = $NUGET_EXE + +# Restore tools from NuGet? +if(-Not $SkipToolPackageRestore.IsPresent) { + Push-Location + Set-Location $TOOLS_DIR + + # Check for changes in packages.config and remove installed tools if true. + [string] $md5Hash = MD5HashFile($PACKAGES_CONFIG) + if((!(Test-Path $PACKAGES_CONFIG_MD5)) -Or + ($md5Hash -ne (Get-Content $PACKAGES_CONFIG_MD5 ))) { + Write-Verbose -Message "Missing or changed package.config hash..." + Get-ChildItem -Exclude packages.config,nuget.exe,Cake.Bakery | + Remove-Item -Recurse + } + + Write-Verbose -Message "Restoring tools from NuGet..." + $NuGetOutput = Invoke-Expression "&`"$NUGET_EXE`" install -ExcludeVersion -OutputDirectory `"$TOOLS_DIR`"" + + if ($LASTEXITCODE -ne 0) { + Throw "An error occurred while restoring NuGet tools." + } + else + { + $md5Hash | Out-File $PACKAGES_CONFIG_MD5 -Encoding "ASCII" + } + Write-Verbose -Message ($NuGetOutput | out-string) + + Pop-Location +} + +# Restore addins from NuGet +if (Test-Path $ADDINS_PACKAGES_CONFIG) { + Push-Location + Set-Location $ADDINS_DIR + + Write-Verbose -Message "Restoring addins from NuGet..." + $NuGetOutput = Invoke-Expression "&`"$NUGET_EXE`" install -ExcludeVersion -OutputDirectory `"$ADDINS_DIR`"" + + if ($LASTEXITCODE -ne 0) { + Throw "An error occurred while restoring NuGet addins." + } + + Write-Verbose -Message ($NuGetOutput | out-string) + + Pop-Location +} + +# Restore modules from NuGet +if (Test-Path $MODULES_PACKAGES_CONFIG) { + Push-Location + Set-Location $MODULES_DIR + + Write-Verbose -Message "Restoring modules from NuGet..." + $NuGetOutput = Invoke-Expression "&`"$NUGET_EXE`" install -ExcludeVersion -OutputDirectory `"$MODULES_DIR`"" + + if ($LASTEXITCODE -ne 0) { + Throw "An error occurred while restoring NuGet modules." + } + + Write-Verbose -Message ($NuGetOutput | out-string) + + Pop-Location +} + +# Make sure that Cake has been installed. +if (!(Test-Path $CAKE_EXE)) { + Throw "Could not find Cake.exe at $CAKE_EXE" +} + + + +# Build Cake arguments +$cakeArguments = @("$Script"); +if ($Target) { $cakeArguments += "-target=$Target" } +if ($Configuration) { $cakeArguments += "-configuration=$Configuration" } +if ($Verbosity) { $cakeArguments += "-verbosity=$Verbosity" } +if ($ShowDescription) { $cakeArguments += "-showdescription" } +if ($DryRun) { $cakeArguments += "-dryrun" } +$cakeArguments += $ScriptArgs + +# Start Cake +Write-Host "Running build script..." + +& "$CAKE_EXE" ./recipe.cake --bootstrap +if ($LASTEXITCODE -eq 0) +{ + & "$CAKE_EXE" $cakeArguments +} + +exit $LASTEXITCODE \ No newline at end of file diff --git a/build.sh b/build.sh index 2cf2b1f..dfdc92e 100644 --- a/build.sh +++ b/build.sh @@ -1,31 +1,130 @@ -#!/bin/bash -# stty -echo +#!/usr/bin/env bash +set -eo pipefail -# ::Project UppercuT - http://uppercut.googlecode.com -# ::No edits to this file are required - http://uppercut.pbwiki.com +########################################################################## +# This is the Cake bootstrapper script for Linux and macOS. +# This file was downloaded from https://github.com/cake-build/resources +# Feel free to change this file to fit your needs. +########################################################################## -function usage -{ - echo "" - echo "Usage: build.sh" - exit -} +# Define directories. +SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) +TOOLS_DIR=$SCRIPT_DIR/tools +ADDINS_DIR=$TOOLS_DIR/Addins +MODULES_DIR=$TOOLS_DIR/Modules +NUGET_EXE=$TOOLS_DIR/nuget.exe +CAKE_EXE=$TOOLS_DIR/Cake/Cake.exe +PACKAGES_CONFIG=$TOOLS_DIR/packages.config +PACKAGES_CONFIG_MD5=$TOOLS_DIR/packages.config.md5sum +ADDINS_PACKAGES_CONFIG=$ADDINS_DIR/packages.config +MODULES_PACKAGES_CONFIG=$MODULES_DIR/packages.config -function displayUsage -{ - case $1 in - "/?"|"-?"|"?"|"/help") usage ;; - esac -} +export CAKE_PATHS_TOOLS=$TOOLS_DIR +export CAKE_PATHS_ADDINS=$ADDINS_DIR +export CAKE_PATHS_MODULES=$MODULES_DIR -displayUsage $1 +# Define md5sum or md5 depending on Linux / macOS +MD5_EXE= +if [[ "$(uname -s)" == "Darwin" ]]; then + MD5_EXE="md5 -r" +else + MD5_EXE="md5sum" +fi -# http://www.michaelruck.de/2010/03/solving-pkg-config-and-mono-35-profile.html -# http://cloudgen.wordpress.com/2013/03/06/configure-nant-to-run-under-mono-3-06-beta-for-mac-osx/ -export PKG_CONFIG_PATH=/opt/local/lib/pkgconfig:/Library/Frameworks/Mono.framework/Versions/Current/lib/pkgconfig +# Define default arguments. +SCRIPT=$SCRIPT_DIR/recipe.cake +CAKE_ARGUMENTS=() -#mono ./lib/NAnt/NAnt.exe /logger:"NAnt.Core.DefaultLogger" /nologo /quiet /f:"$(cd $(dirname "$0"); pwd)/.build/default.build" /D:build.config.settings="$(cd $(dirname "$0"); pwd)/.uppercut" /D:microsoft.framework="mono-3.5" $* -mono --runtime=v4.0.30319 ./lib/NAnt/NAnt.exe /logger:"NAnt.Core.DefaultLogger" /nologo /quiet /f:"$(cd $(dirname "$0"); pwd)/.build/default.build" /D:build.config.settings="$(cd $(dirname "$0"); pwd)/.uppercut" /D:microsoft.framework="mono-4.0" /D:run.ilmerge="false" $* +# Parse arguments. +for i in "$@"; do + case $1 in + -s|--script) SCRIPT="$2"; shift ;; + --) shift; CAKE_ARGUMENTS+=("$@"); break ;; + *) CAKE_ARGUMENTS+=("$1") ;; + esac + shift +done -#/quiet /nologo /debug /verbose /t:"mono-4.0" +# Make sure the tools folder exist. +if [ ! -d "$TOOLS_DIR" ]; then + mkdir "$TOOLS_DIR" +fi +# Make sure that packages.config exist. +if [ ! -f "$TOOLS_DIR/packages.config" ]; then + echo "Downloading packages.config..." + curl -Lsfo "$TOOLS_DIR/packages.config" https://cakebuild.net/download/bootstrapper/packages + if [ $? -ne 0 ]; then + echo "An error occurred while downloading packages.config." + exit 1 + fi +fi + +# Download NuGet if it does not exist. +if [ ! -f "$NUGET_EXE" ]; then + echo "Downloading NuGet..." + curl -Lsfo "$NUGET_EXE" https://dist.nuget.org/win-x86-commandline/latest/nuget.exe + if [ $? -ne 0 ]; then + echo "An error occurred while downloading nuget.exe." + exit 1 + fi +fi + +# Restore tools from NuGet. +pushd "$TOOLS_DIR" >/dev/null +if [ ! -f "$PACKAGES_CONFIG_MD5" ] || [ "$( cat "$PACKAGES_CONFIG_MD5" | sed 's/\r$//' )" != "$( $MD5_EXE "$PACKAGES_CONFIG" | awk '{ print $1 }' )" ]; then + find . -type d ! -name . ! -name 'Cake.Bakery' | xargs rm -rf +fi + +mono "$NUGET_EXE" install -ExcludeVersion +if [ $? -ne 0 ]; then + echo "Could not restore NuGet tools." + exit 1 +fi + +$MD5_EXE "$PACKAGES_CONFIG" | awk '{ print $1 }' >| "$PACKAGES_CONFIG_MD5" + +popd >/dev/null + +# Restore addins from NuGet. +if [ -f "$ADDINS_PACKAGES_CONFIG" ]; then + pushd "$ADDINS_DIR" >/dev/null + + mono "$NUGET_EXE" install -ExcludeVersion + if [ $? -ne 0 ]; then + echo "Could not restore NuGet addins." + exit 1 + fi + + popd >/dev/null +fi + +# Restore modules from NuGet. +if [ -f "$MODULES_PACKAGES_CONFIG" ]; then + pushd "$MODULES_DIR" >/dev/null + + mono "$NUGET_EXE" install -ExcludeVersion + if [ $? -ne 0 ]; then + echo "Could not restore NuGet modules." + exit 1 + fi + + popd >/dev/null +fi + +# Make sure that Cake has been installed. +if [ ! -f "$CAKE_EXE" ]; then + echo "Could not find Cake.exe at '$CAKE_EXE'." + exit 1 +fi + +# Start Cake +mono "$CAKE_EXE" $SCRIPT --bootstrap +if [ $? -eq 0 ]; then + mono "$CAKE_EXE" $SCRIPT "${CAKE_ARGUMENTS[@]}" +fi + +# Clean up environment variables that were created earlier in this bootstrapper +unset CAKE_PATHS_TOOLS +unset CAKE_PATHS_ADDINS +unset CAKE_PATHS_MODULES \ No newline at end of file diff --git a/cake.config b/cake.config new file mode 100644 index 0000000..160af1b --- /dev/null +++ b/cake.config @@ -0,0 +1,11 @@ +[Nuget] +UseInProcessClient=true +LoadDependencies=false + +[Paths] +Tools=./tools +Addins=./tools/Addins +Modules=./tools/Modules + +[Settings] +SkipVerification=true \ No newline at end of file diff --git a/checksum.snk b/checksum.snk deleted file mode 100644 index a9cd8fd..0000000 Binary files a/checksum.snk and /dev/null differ diff --git a/chocolatey.snk b/chocolatey.snk new file mode 100644 index 0000000..ed3455d Binary files /dev/null and b/chocolatey.snk differ diff --git a/gitreleasemanager.yaml b/gitreleasemanager.yaml new file mode 100644 index 0000000..c294d7b --- /dev/null +++ b/gitreleasemanager.yaml @@ -0,0 +1,30 @@ +issue-labels-include: +- Breaking change +- Feature +- C4B Feature +- Bug +- Improvement +- Documentation +issue-labels-exclude: +- Internal Refactoring +- Build +- NO RELEASE NOTES +issue-labels-alias: + - name: Documentation + header: Documentation + plural: Documentation +create: + include-sha-section: true + sha-section-heading: "SHA256 Hashes of the release artifacts" + sha-section-line-format: "- `{1}\t{0}`" +close: + use-issue-comments: true + issue-comment: |- + :tada: This issue has been resolved in version {milestone} :tada: + + The release is available on: + + - [GitHub Release](https://github.com/{owner}/{repository}/releases/tag/{milestone}) + - [Chocolatey Package](https://chocolatey.org/packages/chocolatey/{milestone}) + + Your **[GitReleaseManager](https://github.com/GitTools/GitReleaseManager)** bot :package::rocket: diff --git a/lib/NAnt/CollectionGen.dll b/lib/NAnt/CollectionGen.dll deleted file mode 100644 index 7dd6c58..0000000 Binary files a/lib/NAnt/CollectionGen.dll and /dev/null differ diff --git a/lib/NAnt/Interop.MsmMergeTypeLib.dll b/lib/NAnt/Interop.MsmMergeTypeLib.dll deleted file mode 100644 index bd051e9..0000000 Binary files a/lib/NAnt/Interop.MsmMergeTypeLib.dll and /dev/null differ diff --git a/lib/NAnt/Interop.StarTeam.dll b/lib/NAnt/Interop.StarTeam.dll deleted file mode 100644 index 6f56767..0000000 Binary files a/lib/NAnt/Interop.StarTeam.dll and /dev/null differ diff --git a/lib/NAnt/Interop.WindowsInstaller.dll b/lib/NAnt/Interop.WindowsInstaller.dll deleted file mode 100644 index d669720..0000000 Binary files a/lib/NAnt/Interop.WindowsInstaller.dll and /dev/null differ diff --git a/lib/NAnt/NAnt.CompressionTasks.dll b/lib/NAnt/NAnt.CompressionTasks.dll deleted file mode 100644 index 11c81c2..0000000 Binary files a/lib/NAnt/NAnt.CompressionTasks.dll and /dev/null differ diff --git a/lib/NAnt/NAnt.Contrib.Tasks.dll b/lib/NAnt/NAnt.Contrib.Tasks.dll deleted file mode 100644 index a4ccd72..0000000 Binary files a/lib/NAnt/NAnt.Contrib.Tasks.dll and /dev/null differ diff --git a/lib/NAnt/NAnt.Core.dll b/lib/NAnt/NAnt.Core.dll deleted file mode 100644 index 1083a42..0000000 Binary files a/lib/NAnt/NAnt.Core.dll and /dev/null differ diff --git a/lib/NAnt/NAnt.DotNetTasks.dll b/lib/NAnt/NAnt.DotNetTasks.dll deleted file mode 100644 index 7e2b702..0000000 Binary files a/lib/NAnt/NAnt.DotNetTasks.dll and /dev/null differ diff --git a/lib/NAnt/NAnt.MSNetTasks.dll b/lib/NAnt/NAnt.MSNetTasks.dll deleted file mode 100644 index 3099966..0000000 Binary files a/lib/NAnt/NAnt.MSNetTasks.dll and /dev/null differ diff --git a/lib/NAnt/NAnt.NUnit.dll b/lib/NAnt/NAnt.NUnit.dll deleted file mode 100644 index cf7d5dc..0000000 Binary files a/lib/NAnt/NAnt.NUnit.dll and /dev/null differ diff --git a/lib/NAnt/NAnt.NUnit1Tasks.dll b/lib/NAnt/NAnt.NUnit1Tasks.dll deleted file mode 100644 index a7bda37..0000000 Binary files a/lib/NAnt/NAnt.NUnit1Tasks.dll and /dev/null differ diff --git a/lib/NAnt/NAnt.NUnit2Tasks.dll b/lib/NAnt/NAnt.NUnit2Tasks.dll deleted file mode 100644 index 657180c..0000000 Binary files a/lib/NAnt/NAnt.NUnit2Tasks.dll and /dev/null differ diff --git a/lib/NAnt/NAnt.SourceControlTasks.dll b/lib/NAnt/NAnt.SourceControlTasks.dll deleted file mode 100644 index 82e44da..0000000 Binary files a/lib/NAnt/NAnt.SourceControlTasks.dll and /dev/null differ diff --git a/lib/NAnt/NAnt.VSNetTasks.dll b/lib/NAnt/NAnt.VSNetTasks.dll deleted file mode 100644 index 37f8c3a..0000000 Binary files a/lib/NAnt/NAnt.VSNetTasks.dll and /dev/null differ diff --git a/lib/NAnt/NAnt.VisualCppTasks.dll b/lib/NAnt/NAnt.VisualCppTasks.dll deleted file mode 100644 index 4f6c39c..0000000 Binary files a/lib/NAnt/NAnt.VisualCppTasks.dll and /dev/null differ diff --git a/lib/NAnt/NAnt.Win32Tasks.dll b/lib/NAnt/NAnt.Win32Tasks.dll deleted file mode 100644 index 80ec5c1..0000000 Binary files a/lib/NAnt/NAnt.Win32Tasks.dll and /dev/null differ diff --git a/lib/NAnt/NAnt.exe b/lib/NAnt/NAnt.exe deleted file mode 100644 index 55f9e29..0000000 Binary files a/lib/NAnt/NAnt.exe and /dev/null differ diff --git a/lib/NAnt/NAnt.exe.config b/lib/NAnt/NAnt.exe.config deleted file mode 100644 index 9140d3f..0000000 --- a/lib/NAnt/NAnt.exe.config +++ /dev/null @@ -1,2934 +0,0 @@ - - - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - - - true - - - sn - - - lc - - - false - - - false - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - - - true - - - sn - - - lc - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - true - true - true - true - true - true - - - true - true - true - true - true - true - true - true - - - true - - - true - true - true - true - - - true - true - - - sn - - - lc - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - true - true - true - true - true - true - - - true - true - true - true - true - true - true - true - - - true - - - true - true - true - true - - - true - true - - - sn - - - lc - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - true - true - true - true - true - true - - - true - true - true - true - true - true - true - true - - - true - - - true - true - true - true - - - true - true - - - sn - - - lc - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - The .NET Framework 1.1 SDK is not installed. - - - - true - true - true - - - cfresgen - - - sn - - - lc - - - - - - - - - - - - - - - - - - - - - - - - - - - The .NET Framework 2.0 SDK is not installed. - - - - true - true - true - true - true - true - true - true - true - - - true - true - true - true - true - true - true - true - true - - - true - true - - - sn - - - lc - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - true - true - true - true - true - true - true - true - - - true - true - true - true - true - true - true - true - true - - - true - - - true - true - true - true - - - true - true - - - sn - - - lc - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - true - true - true - true - true - true - true - true - - - true - true - true - true - true - true - true - true - true - - - true - - - true - true - true - true - - - true - true - - - sn - - - lc - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - true - true - true - true - true - true - true - true - - - true - true - true - true - true - true - true - true - true - - - true - - - true - true - true - true - - - true - true - - - sn - - - lc - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - true - true - true - true - true - true - true - true - - - true - true - true - true - true - true - true - true - true - - - true - - - true - true - true - true - - - true - true - - - sn - - - lc - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - - - ${csc.tool} - true - true - true - ${csc.supportsdocgeneration} - true - true - true - true - - - mjs - true - - - ${mbas.tool} - true - - - ${resgen.tool} - true - - - sn - true - - - false - - - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - - - gmcs - true - true - true - ${csc.supportsdocgeneration} - true - true - true - true - - - mjs - strict - - - vbnc - true - - - ${resgen.tool} - true - ${resgen.supportsexternalfilereferences} - - - sn - true - - - false - - - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - - - gmcs - true - linq - true - true - true - true - true - true - true - - - mjs - strict - - - vbnc - true - - - true - true - - - sn - true - - - false - - - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - - - dmcs - true - linq - true - true - true - true - true - true - true - - - mjs - strict - - - vbnc - true - - - true - true - - - sn - true - - - false - - - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - smcs - true - true - true - true - true - true - true - true - - - true - true - - - sn - - - false - - - - - - - - - - - - - - - - - - - - - - - - - true - - - true - - - sn - - - false - - - true - - - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Unable to locate 'mono' module using pkg-config. Download the Mono development packages from http://www.mono-project.com/downloads/. - - - - - - - - - - - - - - - - true - - - ${path::combine(prefix, 'lib/mono/1.0/mcs.exe')} - true - true - true - ${csc.supportsdocgeneration} - true - true - true - true - - - mjs - true - - - ${path::combine(prefix, 'lib/mono/1.0/mbas.exe')} - true - - - ${resgen.tool} - true - - - sn - true - - - false - - - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Unable to locate 'mono' module using pkg-config. Download the Mono development packages from http://www.mono-project.com/downloads/. - - - - - - - - - - - - - - - - - - - - - true - - - gmcs - true - true - true - ${csc.supportsdocgeneration} - true - true - true - true - - - mjs - strict - - - vbnc - true - - - ${resgen.tool} - true - ${resgen.supportsexternalfilereferences} - - - sn - true - - - false - - - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Unable to locate 'mono' module using pkg-config. Download the Mono development packages from http://www.mono-project.com/downloads/. - - - - - - - - true - - - gmcs - true - linq - true - true - true - true - true - true - true - - - mjs - strict - - - vbnc - true - - - true - true - - - sn - true - - - false - - - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Unable to locate 'mono' module using pkg-config. Download the Mono development packages from http://www.mono-project.com/downloads/. - - - - - - - - true - - - dmcs - true - linq - true - true - true - true - true - true - true - - - mjs - strict - - - vbnc - true - - - true - true - - - sn - true - - - false - - - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Unable to locate 'mono' module using pkg-config. Download the Mono development packages from http://www.mono-project.com/downloads/. - - - - - - - smcs - true - true - true - true - true - true - true - true - - - true - true - - - sn - - - false - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/lib/NAnt/NCoverExplorer.NAntTasks.dll b/lib/NAnt/NCoverExplorer.NAntTasks.dll deleted file mode 100644 index 552e452..0000000 Binary files a/lib/NAnt/NCoverExplorer.NAntTasks.dll and /dev/null differ diff --git a/lib/NAnt/NDoc.Documenter.NAnt.dll b/lib/NAnt/NDoc.Documenter.NAnt.dll deleted file mode 100644 index e646883..0000000 Binary files a/lib/NAnt/NDoc.Documenter.NAnt.dll and /dev/null differ diff --git a/lib/NAnt/SLiNgshoT.Core.dll b/lib/NAnt/SLiNgshoT.Core.dll deleted file mode 100644 index 7a3b91b..0000000 Binary files a/lib/NAnt/SLiNgshoT.Core.dll and /dev/null differ diff --git a/lib/NAnt/SLiNgshoT.exe b/lib/NAnt/SLiNgshoT.exe deleted file mode 100644 index 749f82b..0000000 Binary files a/lib/NAnt/SLiNgshoT.exe and /dev/null differ diff --git a/lib/NAnt/SourceSafe.Interop.dll b/lib/NAnt/SourceSafe.Interop.dll deleted file mode 100644 index 85493ae..0000000 Binary files a/lib/NAnt/SourceSafe.Interop.dll and /dev/null differ diff --git a/lib/NAnt/ThoughtWorks.CruiseControl.MSBuild.dll b/lib/NAnt/ThoughtWorks.CruiseControl.MSBuild.dll deleted file mode 100644 index a302f40..0000000 Binary files a/lib/NAnt/ThoughtWorks.CruiseControl.MSBuild.dll and /dev/null differ diff --git a/lib/NAnt/extensions/common/2.0/NAnt.MSBuild.dll b/lib/NAnt/extensions/common/2.0/NAnt.MSBuild.dll deleted file mode 100644 index 43a627c..0000000 Binary files a/lib/NAnt/extensions/common/2.0/NAnt.MSBuild.dll and /dev/null differ diff --git a/lib/NAnt/extensions/common/4.0/NAnt.MSBuild.dll b/lib/NAnt/extensions/common/4.0/NAnt.MSBuild.dll deleted file mode 100644 index 43a627c..0000000 Binary files a/lib/NAnt/extensions/common/4.0/NAnt.MSBuild.dll and /dev/null differ diff --git a/lib/NAnt/lib/common/2.0/nunit-console-runner.dll b/lib/NAnt/lib/common/2.0/nunit-console-runner.dll deleted file mode 100644 index b0e611a..0000000 Binary files a/lib/NAnt/lib/common/2.0/nunit-console-runner.dll and /dev/null differ diff --git a/lib/NAnt/lib/common/2.0/nunit-console.exe b/lib/NAnt/lib/common/2.0/nunit-console.exe deleted file mode 100644 index 0735eef..0000000 Binary files a/lib/NAnt/lib/common/2.0/nunit-console.exe and /dev/null differ diff --git a/lib/NAnt/lib/common/2.0/nunit-console.exe.config b/lib/NAnt/lib/common/2.0/nunit-console.exe.config deleted file mode 100644 index 3a2afb3..0000000 --- a/lib/NAnt/lib/common/2.0/nunit-console.exe.config +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/lib/NAnt/lib/common/2.0/nunit.core.dll b/lib/NAnt/lib/common/2.0/nunit.core.dll deleted file mode 100644 index 5f748be..0000000 Binary files a/lib/NAnt/lib/common/2.0/nunit.core.dll and /dev/null differ diff --git a/lib/NAnt/lib/common/2.0/nunit.core.interfaces.dll b/lib/NAnt/lib/common/2.0/nunit.core.interfaces.dll deleted file mode 100644 index 72b9486..0000000 Binary files a/lib/NAnt/lib/common/2.0/nunit.core.interfaces.dll and /dev/null differ diff --git a/lib/NAnt/lib/common/2.0/nunit.framework.dll b/lib/NAnt/lib/common/2.0/nunit.framework.dll deleted file mode 100644 index eaea9ee..0000000 Binary files a/lib/NAnt/lib/common/2.0/nunit.framework.dll and /dev/null differ diff --git a/lib/NAnt/lib/common/2.0/nunit.util.dll b/lib/NAnt/lib/common/2.0/nunit.util.dll deleted file mode 100644 index 28d603c..0000000 Binary files a/lib/NAnt/lib/common/2.0/nunit.util.dll and /dev/null differ diff --git a/lib/NAnt/lib/common/neutral/ICSharpCode.SharpCvsLib.Console.dll b/lib/NAnt/lib/common/neutral/ICSharpCode.SharpCvsLib.Console.dll deleted file mode 100644 index a64360b..0000000 Binary files a/lib/NAnt/lib/common/neutral/ICSharpCode.SharpCvsLib.Console.dll and /dev/null differ diff --git a/lib/NAnt/lib/common/neutral/ICSharpCode.SharpCvsLib.dll b/lib/NAnt/lib/common/neutral/ICSharpCode.SharpCvsLib.dll deleted file mode 100644 index e2a71cb..0000000 Binary files a/lib/NAnt/lib/common/neutral/ICSharpCode.SharpCvsLib.dll and /dev/null differ diff --git a/lib/NAnt/lib/common/neutral/ICSharpCode.SharpZipLib.dll b/lib/NAnt/lib/common/neutral/ICSharpCode.SharpZipLib.dll deleted file mode 100644 index 60ef0c9..0000000 Binary files a/lib/NAnt/lib/common/neutral/ICSharpCode.SharpZipLib.dll and /dev/null differ diff --git a/lib/NAnt/lib/common/neutral/NDoc.Core.dll b/lib/NAnt/lib/common/neutral/NDoc.Core.dll deleted file mode 100644 index 07fbbe8..0000000 Binary files a/lib/NAnt/lib/common/neutral/NDoc.Core.dll and /dev/null differ diff --git a/lib/NAnt/lib/common/neutral/NDoc.Documenter.Msdn.dll b/lib/NAnt/lib/common/neutral/NDoc.Documenter.Msdn.dll deleted file mode 100644 index 986998c..0000000 Binary files a/lib/NAnt/lib/common/neutral/NDoc.Documenter.Msdn.dll and /dev/null differ diff --git a/lib/NAnt/lib/common/neutral/NDoc.ExtendedUI.dll b/lib/NAnt/lib/common/neutral/NDoc.ExtendedUI.dll deleted file mode 100644 index bc3d5a4..0000000 Binary files a/lib/NAnt/lib/common/neutral/NDoc.ExtendedUI.dll and /dev/null differ diff --git a/lib/NAnt/lib/common/neutral/NUnitCore.dll b/lib/NAnt/lib/common/neutral/NUnitCore.dll deleted file mode 100644 index 0f1873c..0000000 Binary files a/lib/NAnt/lib/common/neutral/NUnitCore.dll and /dev/null differ diff --git a/lib/NAnt/lib/common/neutral/netDumbster.dll b/lib/NAnt/lib/common/neutral/netDumbster.dll deleted file mode 100644 index 49d7191..0000000 Binary files a/lib/NAnt/lib/common/neutral/netDumbster.dll and /dev/null differ diff --git a/lib/NAnt/log4net.dll b/lib/NAnt/log4net.dll deleted file mode 100644 index 20a2e1c..0000000 Binary files a/lib/NAnt/log4net.dll and /dev/null differ diff --git a/lib/NAnt/scvs.exe b/lib/NAnt/scvs.exe deleted file mode 100644 index 093d36e..0000000 Binary files a/lib/NAnt/scvs.exe and /dev/null differ diff --git a/lib/nuget/NuGet.exe b/lib/nuget/NuGet.exe deleted file mode 100644 index 319b05f..0000000 Binary files a/lib/nuget/NuGet.exe and /dev/null differ diff --git a/nuget/checksum.nuspec b/nuspec/chocolatey/checksum.nuspec similarity index 100% rename from nuget/checksum.nuspec rename to nuspec/chocolatey/checksum.nuspec diff --git a/recipe.cake b/recipe.cake new file mode 100644 index 0000000..7e5093c --- /dev/null +++ b/recipe.cake @@ -0,0 +1,68 @@ +#load nuget:?package=Chocolatey.Cake.Recipe&version=0.20.1 + +/////////////////////////////////////////////////////////////////////////////// +// SCRIPT +/////////////////////////////////////////////////////////////////////////////// + +Func getFilesToSign = () => +{ + var filesToSign = GetFiles(BuildParameters.Paths.Directories.ChocolateyNuspecDirectory + "/tools/app/checksum.exe"); + + Information("The following assemblies have been selected to be signed..."); + foreach (var fileToSign in filesToSign) + { + Information(fileToSign.FullPath); + } + + return filesToSign; +}; + +/////////////////////////////////////////////////////////////////////////////// +// CUSTOM TASKS +/////////////////////////////////////////////////////////////////////////////// + +Task("Prepare-Chocolatey-Packages") + .IsDependeeOf("Create-Chocolatey-Packages") + .IsDependeeOf("Sign-PowerShellScripts") + .IsDependeeOf("Sign-Assemblies") + .WithCriteria(() => BuildParameters.BuildAgentOperatingSystem == PlatformFamily.Windows, "Skipping because not running on Windows") + .WithCriteria(() => BuildParameters.ShouldRunChocolatey, "Skipping because execution of Chocolatey has been disabled") + .Does(() => +{ + CleanDirectory(BuildParameters.Paths.Directories.ChocolateyNuspecDirectory + "/tools/app"); + + // Copy legal documents + CopyFile(BuildParameters.RootDirectoryPath + "/LICENSE", BuildParameters.Paths.Directories.ChocolateyNuspecDirectory + "/tools/app/LICENSE.txt"); + + // Copy main file + CopyFile(BuildParameters.Paths.Directories.PublishedApplications + "/checksum/checksum.exe", BuildParameters.Paths.Directories.ChocolateyNuspecDirectory + "/tools/app/checksum.exe"); +}); + +/////////////////////////////////////////////////////////////////////////////// +// RECIPE SCRIPT +/////////////////////////////////////////////////////////////////////////////// + +Environment.SetVariableNames(); + +BuildParameters.SetParameters(context: Context, + buildSystem: BuildSystem, + sourceDirectoryPath: "./src", + solutionFilePath: "./src/checksum.sln", + solutionDirectoryPath: "./src/checksum", + resharperSettingsFileName: "checksum.sln.DotSettings", + title: "Checksum", + repositoryOwner: "chocolatey", + repositoryName: "checksum", + productName: "Checksum", + productDescription: "chocolatey is a product of Chocolatey Software, Inc. - All Rights Reserved.", + productCopyright: string.Format("Copyright © 2017 - {0} Chocolatey Software, Inc. Copyright © 2011 - 2017, RealDimensions Software, LLC - All Rights Reserved.", DateTime.Now.Year), + shouldStrongNameSignDependentAssemblies: false, + treatWarningsAsErrors: false, + shouldPublishAwsLambdas: false, + getFilesToSign: getFilesToSign); + +ToolSettings.SetToolSettings(context: Context); + +BuildParameters.PrintParameters(Context); + +Build.Run(); \ No newline at end of file diff --git a/checksum.sln b/src/checksum.sln similarity index 53% rename from checksum.sln rename to src/checksum.sln index faa27e0..0a8e39e 100644 --- a/checksum.sln +++ b/src/checksum.sln @@ -1,20 +1,28 @@  -Microsoft Visual Studio Solution File, Format Version 11.00 -# Visual Studio 2010 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "checksum", "src\checksum\checksum.csproj", "{D1BF7C1F-E3F9-45D0-B3C5-7F4D3EF720FE}" +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.4.33205.214 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "checksum", "checksum\checksum.csproj", "{D1BF7C1F-E3F9-45D0-B3C5-7F4D3EF720FE}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU + ReleaseOfficial|Any CPU = ReleaseOfficial|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {D1BF7C1F-E3F9-45D0-B3C5-7F4D3EF720FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {D1BF7C1F-E3F9-45D0-B3C5-7F4D3EF720FE}.Debug|Any CPU.Build.0 = Debug|Any CPU {D1BF7C1F-E3F9-45D0-B3C5-7F4D3EF720FE}.Release|Any CPU.ActiveCfg = Release|Any CPU {D1BF7C1F-E3F9-45D0-B3C5-7F4D3EF720FE}.Release|Any CPU.Build.0 = Release|Any CPU + {D1BF7C1F-E3F9-45D0-B3C5-7F4D3EF720FE}.ReleaseOfficial|Any CPU.ActiveCfg = ReleaseOfficial|Any CPU + {D1BF7C1F-E3F9-45D0-B3C5-7F4D3EF720FE}.ReleaseOfficial|Any CPU.Build.0 = ReleaseOfficial|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {08909597-B21E-4C71-9F6E-32F475B3350E} + EndGlobalSection EndGlobal diff --git a/src/checksum/checksum.csproj b/src/checksum/checksum.csproj index 59e4cb6..16e06d9 100644 --- a/src/checksum/checksum.csproj +++ b/src/checksum/checksum.csproj @@ -1,5 +1,5 @@  - + Debug x86 @@ -10,8 +10,9 @@ Properties checksum checksum - v4.0 - Client + v4.8 + + 512 @@ -46,6 +47,7 @@ MinimumRecommendedRules.ruleset ;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets ;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules + false bin\Release\ @@ -62,6 +64,25 @@ ;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets ;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules false + false + + + bin\x86\ReleaseOfficial\ + TRACE + true + pdbonly + x86 + 7.3 + prompt + true + + + bin\ReleaseOfficial\ + true + AnyCPU + 7.3 + prompt + MinimumRecommendedRules.ruleset @@ -69,7 +90,7 @@ - + Properties\SolutionVersion.cs diff --git a/test.bat b/test.bat deleted file mode 100644 index 13bf619..0000000 --- a/test.bat +++ /dev/null @@ -1,39 +0,0 @@ -@echo off - -::Project UppercuT - http://uppercut.googlecode.com -::No edits to this file are required - http://uppercut.pbwiki.com - -if '%2' NEQ '' goto usage -if '%3' NEQ '' goto usage -if '%1' == '/?' goto usage -if '%1' == '-?' goto usage -if '%1' == '?' goto usage -if '%1' == '/help' goto usage - -SET DIR=%cd% -SET BUILD_DIR=%~d0%~p0% -SET NANT="%BUILD_DIR%lib\Nant\nant.exe" -SET build.config.settings="%DIR%\.uppercut" - -%NANT% /logger:"NAnt.Core.DefaultLogger" /quiet /nologo /f:"%BUILD_DIR%.build\compile.step" -D:build.config.settings=%build.config.settings% - -if %ERRORLEVEL% NEQ 0 goto errors - -%NANT% /logger:"NAnt.Core.DefaultLogger" /quiet /nologo /f:"%BUILD_DIR%.build\analyzers\test.step" %1 -D:build.config.settings=%build.config.settings% -%NANT% /logger:"NAnt.Core.DefaultLogger" /quiet /nologo /f:"%BUILD_DIR%.build\analyzers\test.step" open_results -D:build.config.settings=%build.config.settings% - -if %ERRORLEVEL% NEQ 0 goto errors - -goto finish - -:usage -echo. -echo Usage: test.bat -echo Usage: test.bat all - to run all tests -echo. -goto finish - -:errors -EXIT /B %ERRORLEVEL% - -:finish \ No newline at end of file diff --git a/tools/packages.config b/tools/packages.config new file mode 100644 index 0000000..ef49ed4 --- /dev/null +++ b/tools/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/zip.bat b/zip.bat deleted file mode 100644 index 23061ab..0000000 --- a/zip.bat +++ /dev/null @@ -1,25 +0,0 @@ -@echo off - -::Project UppercuT - http://uppercut.googlecode.com -::No edits to this file are required - http://uppercut.pbwiki.com - -SET DIR=%cd% -SET BUILD_DIR=%~d0%~p0% - -::This is gone once teamcity can call multiple files -call "%BUILD_DIR%build.bat" %* -if %ERRORLEVEL% NEQ 0 goto errors - -SET NANT="%BUILD_DIR%lib\Nant\nant.exe" -SET build.config.settings="%DIR%\.uppercut" - -%NANT% /logger:"NAnt.Core.DefaultLogger" /quiet /nologo /f:"%BUILD_DIR%.build\zip.build" -D:build.config.settings=%build.config.settings% %* - -if %ERRORLEVEL% NEQ 0 goto errors - -goto finish - -:errors -EXIT /B %ERRORLEVEL% - -:finish \ No newline at end of file diff --git a/zip.sh b/zip.sh deleted file mode 100644 index c74378b..0000000 --- a/zip.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash -# stty -echo - -# ::Project UppercuT - http://uppercut.googlecode.com -# ::No edits to this file are required - http://uppercut.pbwiki.com -function usage -{ - echo "" - echo "Usage: zip.sh" - exit -} - -function displayUsage -{ - case $1 in - "/?"|"-?"|"?"|"/help") usage ;; - esac -} - -displayUsage $1 - -# http://www.michaelruck.de/2010/03/solving-pkg-config-and-mono-35-profile.html -# http://cloudgen.wordpress.com/2013/03/06/configure-nant-to-run-under-mono-3-06-beta-for-mac-osx/ -export PKG_CONFIG_PATH=/opt/local/lib/pkgconfig:/Library/Frameworks/Mono.framework/Versions/Current/lib/pkgconfig - -#mono ./lib/NAnt/NAnt.exe /logger:"NAnt.Core.DefaultLogger" /nologo /quiet /f:"$(cd $(dirname "$0"); pwd)/.build/zip.build" /D:build.config.settings="$(cd $(dirname "$0"); pwd)/.uppercut" /D:microsoft.framework="mono-3.5" $* -mono --runtime=v4.0.30319 ./lib/NAnt/NAnt.exe /logger:"NAnt.Core.DefaultLogger" /nologo /quiet /f:"$(cd $(dirname "$0"); pwd)/.build/zip.build" /D:build.config.settings="$(cd $(dirname "$0"); pwd)/.uppercut" /D:microsoft.framework="mono-4.0" $*