<commit_before>version: '1.0.0-beta1.{build}'
image: Visual Studio 2017

branches:
  only:
  - master

environment:
  DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
  DOTNET_CLI_TELEMETRY_OPTOUT: 1
  CLI_CHANNEL: release/2.0.0
  CLI_VERSION: 2.0.0-preview2-006497
  nodejs_version: "8"

init:
  # Good practise, because Windows line endings are different from Unix/Linux ones
  - cmd: git config --global core.autocrlf true

install:
  # Install NodeJS 8.0
  - ps: Install-Product node $env:nodejs_version
  # Install .net SDK
  - ps: $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetsdk"
  - ps: mkdir $env:DOTNET_INSTALL_DIR -Force | Out-Null
  - ps: Invoke-WebRequest -Uri "https://raw.githubusercontent.com/dotnet/cli/release/2.0.0-preview2/scripts/obtain/dotnet-install.ps1" -OutFile "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1"
  - ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Channel $env:CLI_CHANNEL -Version $env:CLI_VERSION -InstallDir $env:DOTNET_INSTALL_DIR'
  - ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"

build_script:
  - ps: ./build.ps1

test_script:
  - ps: ./build.ps1 -target Test

on_success:
  - ps: ./build.ps1 -target ExportCoverageReport

artifacts:
  - path: '**\*.nupkg'
    name: Nuget<commit_msg>Add test coverage artifacts<commit_after>version: '1.0.0-beta1.{build}'
image: Visual Studio 2017

branches:
  only:
  - master

environment:
  DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
  DOTNET_CLI_TELEMETRY_OPTOUT: 1
  CLI_CHANNEL: release/2.0.0
  CLI_VERSION: 2.0.0-preview2-006497
  nodejs_version: "8"

init:
  # Good practise, because Windows line endings are different from Unix/Linux ones
  - cmd: git config --global core.autocrlf true

install:
  # Install NodeJS 8.0
  - ps: Install-Product node $env:nodejs_version
  # Install .net SDK
  - ps: $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetsdk"
  - ps: mkdir $env:DOTNET_INSTALL_DIR -Force | Out-Null
  - ps: Invoke-WebRequest -Uri "https://raw.githubusercontent.com/dotnet/cli/release/2.0.0-preview2/scripts/obtain/dotnet-install.ps1" -OutFile "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1"
  - ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Channel $env:CLI_CHANNEL -Version $env:CLI_VERSION -InstallDir $env:DOTNET_INSTALL_DIR'
  - ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"

build_script:
  - ps: ./build.ps1

test_script:
  - ps: ./build.ps1 -target Test

on_success:
  - ps: ./build.ps1 -target ExportCoverageReport

artifacts:
  - path: '**\*.nupkg'
    name: Nuget
  - path: '**\test\Sejil.Server.Test\coverage\report'
    name: CoverageReport
{'fraction_non_alphanumeric': 0.13670191931061496, 'fraction_numerical': 0.027418723070896985, 'mean_word_length': 4.108, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4685501', 'n_tokens_mistral': 1051, 'n_tokens_neox': 1006, 'n_words': 190}