<commit_before>image:
- Visual Studio 2017

pull_requests:
  do_not_increment_build_number: true
  
skip_commits:
  files:
    - '*.md'
    
install:
  - cinst gitversion.portable --version=3.6.4 -y
  - cinst gitlink --version=2.4.0 -y

configuration: Release

before_build:
  - appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
  - nuget restore .\Source\HelixToolkit.AppVeyor.sln
  - gitversion /l console /output buildserver /updateAssemblyInfo
  
build_script:
  - msbuild Source/HelixToolkit.AppVeyor.sln "/property:Platform=Any CPU" "/property:Version=%GitVersion_NuGetVersion%" /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"

after_build:
  - gitlink %APPVEYOR_BUILD_FOLDER% -u https://github.com/%APPVEYOR_REPO_NAME% -b master -f Source/HelixToolkit.AppVeyor.sln
  - nuget pack Source\HelixToolkit\HelixToolkit.nuspec -version "%GitVersion_NuGetVersion%"
  - nuget pack Source\HelixToolkit.Wpf\HelixToolkit.Wpf.nuspec -version "%GitVersion_NuGetVersion%"
  - nuget pack Source\HelixToolkit.Wpf.SharpDX\HelixToolkit.Wpf.Sharpdx.nuspec -version "%GitVersion_NuGetVersion%"
  - nuget pack Source\HelixToolkit.UWP\HelixToolkit.UWP.nuspec -version "%GitVersion_NuGetVersion%"
  - Source\build-dist-examples.cmd

artifacts:
  - path: '*.nupkg'
    name: HelixToolkit-packages-$(GitVersion_SemVer)
    type: zip
  - path: Source\dist-examples
    name: HelixToolkit-Examples-$(GitVersion_SemVer)
    type: zip
    
deploy:
  provider: NuGet
  server: https://www.myget.org/F/helix-toolkit/api/v2/package<commit_msg>Create examples artifacts only on HelixToolkit<commit_after>image:
- Visual Studio 2017

pull_requests:
  do_not_increment_build_number: true
  
skip_commits:
  files:
    - '*.md'
    
install:
  - cinst gitversion.portable --version=3.6.4 -y
  - cinst gitlink --version=2.4.0 -y

configuration: Release

before_build:
  - appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
  - nuget restore .\Source\HelixToolkit.AppVeyor.sln
  - gitversion /l console /output buildserver /updateAssemblyInfo
  
build_script:
  - msbuild Source/HelixToolkit.AppVeyor.sln "/property:Platform=Any CPU" "/property:Version=%GitVersion_NuGetVersion%" /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"

after_build:
  - gitlink %APPVEYOR_BUILD_FOLDER% -u https://github.com/%APPVEYOR_REPO_NAME% -b master -f Source/HelixToolkit.AppVeyor.sln
  - nuget pack Source\HelixToolkit\HelixToolkit.nuspec -version "%GitVersion_NuGetVersion%"
  - nuget pack Source\HelixToolkit.Wpf\HelixToolkit.Wpf.nuspec -version "%GitVersion_NuGetVersion%"
  - nuget pack Source\HelixToolkit.Wpf.SharpDX\HelixToolkit.Wpf.Sharpdx.nuspec -version "%GitVersion_NuGetVersion%"
  - nuget pack Source\HelixToolkit.UWP\HelixToolkit.UWP.nuspec -version "%GitVersion_NuGetVersion%"
  - if %APPVEYOR_REPO_NAME%=="helix-toolkit/helix-toolkit" Source\build-dist-examples.cmd

artifacts:
  - path: '*.nupkg'
    name: HelixToolkit-packages-$(GitVersion_SemVer)
    type: zip
  - path: Source\dist-examples
    name: HelixToolkit-Examples-$(GitVersion_SemVer)
    type: zip
    
deploy:
  provider: NuGet
  server: https://www.myget.org/F/helix-toolkit/api/v2/package
{'fraction_non_alphanumeric': 0.11813186813186813, 'fraction_numerical': 0.007936507936507936, 'mean_word_length': 4.416528925619835, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1941144', 'n_tokens_mistral': 1268, 'n_tokens_neox': 1203, 'n_words': 188}