<commit_before>os: Visual Studio 2017 RC
build: off

environment:
  sonarkey:
    secure: <KEY>
  COVERALLS_REPO_TOKEN:
    secure: <KEY>

install:
  - cmd: curl -fsS -o consul.zip https://releases.hashicorp.com/consul/0.7.2/consul_0.7.2_windows_amd64.zip
  - cmd: 7z x consul.zip -o"C:\Consul" -y > nul
  - ps: $MyProcess = Start-Process C:\Consul\consul.exe -ArgumentList "agent -server -bootstrap-expect 1 -data-dir C:\Consul\Data -advertise=127.0.0.1" -PassThru

before_test:
  - dotnet --info
  - dotnet restore
  - VersionNumber.bat
  
test_script:
  # Build sample
  - dotnet test test/CondenserTests/CondenserTests.csproj
  - dotnet test test/Condenser.Tests.Integration/Condenser.Tests.Integration.csproj
  
after_test:
  # Build and pack source
  - ps: iex ((Get-ChildItem ($env:USERPROFILE + '\.nuget\packages\OpenCover'))[0].FullName + '\tools\OpenCover.Console.exe' + ' -register:user -target:".\script\runtests.bat" -searchdirs:"..\test\Condenser.Tests.Integration\bin\Debug\netcoreapp1.1;..\test\CondenserTests\bin\debug\netcoreapp1.1" -oldstyle -output:coverage.xml -skipautoprops -returntargetcode -filter:"+[Condenser*]* -[*Test*]*"')
  - ps: iex ((Get-ChildItem ($env:USERPROFILE + '\.nuget\packages\coveralls.io'))[0].FullName + '\tools\coveralls.net.exe' + ' --opencover coverage.xml')
  - dotnet build -c Release
  - dotnet pack -c Release src/CondenserDotNet.Client --version-suffix $env:suffix
  - dotnet pack -c Release src/CondenserDotNet.Server --version-suffix $env:suffix
  - dotnet pack -c Release src/CondenserDotNet.Core --version-suffix $env:suffix
  - dotnet pack -c Release src/CondenserDotNet.Configuration --version-suffix $env:suffix
  - dotnet pack -c Release src/CondenserDotNet.ProtocolSwitcher --version-suffix $env:suffix
  - dotnet pack -c Release src/CondenserDotNet.Server.WindowsAuthentication --version-suffix $env:suffix
  
artifacts:
  path: '**/*.nupkg'

deploy:  
- provider: NuGet
  server: https://www.myget.org/F/condenserdotnet/api/v2/package
  api_key:
    secure: <KEY>
  skip_symbols: true
  on:
    branch: master<commit_msg>Build fix<commit_after>os: Visual Studio 2017 RC
build: off

environment:
  sonarkey:
    secure: <KEY>
  COVERALLS_REPO_TOKEN:
    secure: <KEY>   

install:
  - cmd: curl -fsS -o consul.zip https://releases.hashicorp.com/consul/0.7.2/consul_0.7.2_windows_amd64.zip
  - cmd: 7z x consul.zip -o"C:\Consul" -y > nul
  - ps: $MyProcess = Start-Process C:\Consul\consul.exe -ArgumentList "agent -server -bootstrap-expect 1 -data-dir C:\Consul\Data -advertise=127.0.0.1" -PassThru

before_test:
  - dotnet --info
  - dotnet restore
  - VersionNumber.bat
  
test_script:
  # Build sample
  - dotnet test test/CondenserTests/CondenserTests.csproj
  - dotnet test test/Condenser.Tests.Integration/Condenser.Tests.Integration.csproj
  
after_test:
  # Build and pack source
  - ps: iex ((Get-ChildItem ($env:USERPROFILE + '\.nuget\packages\OpenCover'))[0].FullName + '\tools\OpenCover.Console.exe' + ' -register:user -target:".\script\runtests.bat" -searchdirs:"..\test\Condenser.Tests.Integration\bin\Debug\netcoreapp1.1;..\test\CondenserTests\bin\debug\netcoreapp1.1" -oldstyle -output:coverage.xml -skipautoprops -returntargetcode -filter:"+[Condenser*]* -[*Test*]*"')
  - ps: iex ((Get-ChildItem ($env:USERPROFILE + '\.nuget\packages\coveralls.io'))[0].FullName + '\tools\coveralls.net.exe' + ' --opencover coverage.xml')
  - dotnet build -c Release
  - dotnet pack -c Release src/CondenserDotNet.Client --version-suffix %suffix%
  - dotnet pack -c Release src/CondenserDotNet.Server --version-suffix %suffix%
  - dotnet pack -c Release src/CondenserDotNet.Core --version-suffix %suffix%
  - dotnet pack -c Release src/CondenserDotNet.Configuration --version-suffix %suffix%
  - dotnet pack -c Release src/CondenserDotNet.ProtocolSwitcher --version-suffix %suffix%
  - dotnet pack -c Release src/CondenserDotNet.Server.WindowsAuthentication --version-suffix %suffix%
  
artifacts:
  path: '**/*.nupkg'

deploy:  
- provider: NuGet
  server: https://www.myget.org/F/condenserdotnet/api/v2/package
  api_key:
    secure: <KEY>
  skip_symbols: true
  on:
    branch: master
{'fraction_non_alphanumeric': 0.14406167188629246, 'fraction_numerical': 0.013008913514815708, 'mean_word_length': 3.8, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, 'pii_count': 2, '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': '2790287', 'n_tokens_mistral': 1573, 'n_tokens_neox': 1504, 'n_words': 292}