<commit_before>version: build-{build}

configuration: Release

os: Visual Studio 2017

environment:
  DOTNET_CLI_TELEMETRY_OPTOUT: true
  DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
  TARGET_BUILD_VERSION: '3.0.0'

nuget:
  disable_publish_on_pr: true

before_build:
- dotnet --info
- dotnet restore .\src\ReverseMarkdown.sln

build_script:
- dotnet build .\src\ReverseMarkdown.sln --configuration Release /p:Version=%TARGET_BUILD_VERSION%
  
test_script:
  - dotnet test .\src\ReverseMarkdown.Test\ReverseMarkdown.Test.csproj --configuration Release

after_test:
  - dotnet pack .\src\ReverseMarkdown --configuration Release /p:Version=%TARGET_BUILD_VERSION%

artifacts:
  - path: '**\ReverseMarkdown.*.*nupkg' # find all NuGet packages recursively

deploy:
  provider: NuGet
  api_key:
    secure: <KEY>
  artifact: /.*\.nupkg/
  on:
    APPVEYOR_REPO_TAG: true
after_deploy: # workaround to publish snupkg to NuGet
  - ps: Get-ChildItem .\*.snupkg | % { dotnet nuget push $_.FullName -s https://api.nuget.org/v3/index.json -k $env:NUGET_DEPLOY_SECRET }<commit_msg>Update NuGet api key<commit_after>version: build-{build}

configuration: Release

os: Visual Studio 2017

environment:
  DOTNET_CLI_TELEMETRY_OPTOUT: true
  DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
  TARGET_BUILD_VERSION: '3.0.0'

nuget:
  disable_publish_on_pr: true

before_build:
- dotnet --info
- dotnet restore .\src\ReverseMarkdown.sln

build_script:
- dotnet build .\src\ReverseMarkdown.sln --configuration Release /p:Version=%TARGET_BUILD_VERSION%
  
test_script:
  - dotnet test .\src\ReverseMarkdown.Test\ReverseMarkdown.Test.csproj --configuration Release

after_test:
  - dotnet pack .\src\ReverseMarkdown --configuration Release /p:Version=%TARGET_BUILD_VERSION%

artifacts:
  - path: '**\ReverseMarkdown.*.*nupkg' # find all NuGet packages recursively

deploy:
  provider: NuGet
  api_key:
    <KEY>
  artifact: /.*\.nupkg/
  on:
    APPVEYOR_REPO_TAG: true
after_deploy: # workaround to publish snupkg to NuGet
  - ps: Get-ChildItem .\*.snupkg | % { dotnet nuget push $_.FullName -s https://api.nuget.org/v3/index.json -k $env:NUGET_DEPLOY_SECRET }
{'fraction_non_alphanumeric': 0.11152941176470588, 'fraction_numerical': 0.0075294117647058826, 'mean_word_length': 4.355163727959698, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '1008062', 'n_tokens_mistral': 827, 'n_tokens_neox': 772, 'n_words': 164}