<commit_before>configuration: Release

install:
- GitVersion /output buildserver /UpdateAssemblyInfo true
- choco install opencover -source https://nuget.org/api/v2/
- choco install coveralls.io -source https://nuget.org/api/v2/
- choco install resharper-clt

#cache:
#- packages -> **\packages.config
#- C:\ProgramData\chocolatey\bin\OpenCover.Console.exe -> appveyor.yml
#- C:\ProgramData\chocolatey\bin\coveralls.net.exe -> appveyor.yml
#- C:\ProgramData\chocolatey\bin\inspectcode.exe -> appveyor.yml
#- C:\ProgramData\chocolatey\lib -> appveyor.yml

environment:
  COVERALLS_REPO_TOKEN:
    secure: <KEY>

before_build:
  - nuget restore
	
build:
  project: SemanticReleaseNotesParser.sln
  verbosity: minimal

after_build:
- inspectcode /o="inspectcodereport.xml" "SemanticReleaseNotesParser.sln"
#- NVika\bin\Release\NVika buildserver "inspectcodereport.xml" --debug --includesource

test_script:
- OpenCover.Console.exe -register:user -filter:"+[SemanticReleaseNotesParser.Core]*" -excludebyattribute:*.ExcludeFromCodeCoverage* -target:"xunit.console.clr4.exe" -targetargs:"""SemanticReleaseNotesParser.Core.Tests\bin\Release\SemanticReleaseNotesParser.Core.Tests.dll"" /noshadow /appveyor" -output:coverage.xml -returntargetcode
- coveralls.net --opencover coverage.xml
- OpenCover.Console.exe -register:user -filter:"+[SemanticReleaseNotesParser]*" -excludebyattribute:*.ExcludeFromCodeCoverage* -target:"xunit.console.clr4.exe" -targetargs:"""SemanticReleaseNotesParser.Tests\bin\Release\SemanticReleaseNotesParser.Tests.dll"" /noshadow /appveyor" -output:coverage.xml -returntargetcode
- coveralls.net --opencover coverage.xml

artifacts:
- path: inspectcodereport.xml
- path: coverage.xml
- path: NVika\bin\Release\SemanticReleaseNotesParser.exe.CodeAnalysisLog.xml
  name: SemanticReleaseNotesParser.exe.CodeAnalysisLog.xml
- path: NVika\bin\Release\SemanticReleaseNotesParser.Core..dll.CodeAnalysisLog.xml
  name: SemanticReleaseNotesParser.Core.dll.CodeAnalysisLog.xml<commit_msg>Fix appveyor.yml<commit_after>configuration: Release

install:
- GitVersion /output buildserver /UpdateAssemblyInfo true
- choco install opencover -source https://nuget.org/api/v2/
- choco install coveralls.io -source https://nuget.org/api/v2/
- choco install resharper-clt

#cache:
#- packages -> **\packages.config
#- C:\ProgramData\chocolatey\bin\OpenCover.Console.exe -> appveyor.yml
#- C:\ProgramData\chocolatey\bin\coveralls.net.exe -> appveyor.yml
#- C:\ProgramData\chocolatey\bin\inspectcode.exe -> appveyor.yml
#- C:\ProgramData\chocolatey\lib -> appveyor.yml

environment:
  COVERALLS_REPO_TOKEN:
    secure: <KEY>

before_build:
  - nuget restore

build:
  project: SemanticReleaseNotesParser.sln
  verbosity: minimal

after_build:
- inspectcode /o="inspectcodereport.xml" "SemanticReleaseNotesParser.sln"
#- NVika\bin\Release\NVika buildserver "inspectcodereport.xml" --debug --includesource

test_script:
- OpenCover.Console.exe -register:user -filter:"+[SemanticReleaseNotesParser.Core]*" -excludebyattribute:*.ExcludeFromCodeCoverage* -target:"xunit.console.clr4.exe" -targetargs:"""SemanticReleaseNotesParser.Core.Tests\bin\Release\SemanticReleaseNotesParser.Core.Tests.dll"" /noshadow /appveyor" -output:coverage.xml -returntargetcode
- coveralls.net --opencover coverage.xml
- OpenCover.Console.exe -register:user -filter:"+[SemanticReleaseNotesParser]*" -excludebyattribute:*.ExcludeFromCodeCoverage* -target:"xunit.console.clr4.exe" -targetargs:"""SemanticReleaseNotesParser.Tests\bin\Release\SemanticReleaseNotesParser.Tests.dll"" /noshadow /appveyor" -output:coverage.xml -returntargetcode
- coveralls.net --opencover coverage.xml

artifacts:
- path: inspectcodereport.xml
- path: coverage.xml
- path: NVika\bin\Release\SemanticReleaseNotesParser.exe.CodeAnalysisLog.xml
  name: SemanticReleaseNotesParser.exe.CodeAnalysisLog.xml
- path: NVika\bin\Release\SemanticReleaseNotesParser.Core..dll.CodeAnalysisLog.xml
  name: SemanticReleaseNotesParser.Core.dll.CodeAnalysisLog.xml
{'fraction_non_alphanumeric': 0.1274411617426139, 'fraction_numerical': 0.00200300450676014, 'mean_word_length': 5.614238410596027, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 24}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5643083', 'n_tokens_mistral': 1394, 'n_tokens_neox': 1305, 'n_words': 186}