diff --git a/appveyor.yml b/appveyor.yml index 0ee525bd4a..a6739cfe39 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -38,6 +38,17 @@ after_build: --codeVersion "$version" } +before_test: +- ps: | + if ($env:APPVEYOR_SCHEDULED_BUILD -eq "True") + { + choco install resharper-clt -y + dupFinder /output=dupReport.xml /show-text OpenRA.sln + choco install xmlstarlet -y + xml transform dupFinder.xslt dupReport.xml > dupReport.html + choco install pandoc -y + } + test_script: - nunit-console-x86.exe OpenRA.Test.dll @@ -63,4 +74,6 @@ artifacts: - path: OpenRA-$(APPVEYOR_REPO_TAG_NAME).exe name: Installer - path: coverity.zip - name: Coverity Build \ No newline at end of file + name: Coverity Build + - path: dupReport.html + name: dupFinder Report diff --git a/dupFinder.xslt b/dupFinder.xslt new file mode 100644 index 0000000000..ad7f6990d1 --- /dev/null +++ b/dupFinder.xslt @@ -0,0 +1,24 @@ + + + + + + +

Statistics

+

Total codebase size:

+

Code to analyze:

+

Total size of duplicated fragments:

+

Detected Duplicates

+ +

Duplicated Code. Size:

+

Duplicated Fragments:

+ + +

Fragment in file

+
+
+
+ + +
+
\ No newline at end of file