<commit_before>﻿#appveyor.yml reference: http://www.appveyor.com/docs/appveyor-yml
version: 0.25.1.{build}
platform: x86
clone_folder: c:\gittfs
clone_depth: 1
# build cache to preserve files/folders between builds
cache:
  - packages -> paket.lock  # preserve "packages" directory in the root of build folder but will reset it if `paket.lock` is modified
init: []
install:
  - choco install tfs2010objectmodel -y
before_build:
  - ps: $env:Config = "Release"
build_script:
  - msbuild GitTfs.sln /t:GitTfs_Vs2010 /t:GitTfs_Vs2012 /t:GitTfs_Vs2013 /t:GitTfs_Vs2015 /t:GitTfsTest /verbosity:minimal /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /nologo /p:BuildInParallel=true /m:4
after_build:
  - ps: |
      if ( ! (Test-Path -Path "$Env:APPVEYOR_BUILD_FOLDER\GitTfs\bin\$env:Config\NativeBinaries")) {
        $libgit2Binaries=Get-ChildItem ".\packages\" -Filter "LibGit2Sharp.NativeBinaries\runtimes\win7-x86\native" -Recurse | Select-Object -First 1 | % { $_.FullName }
        Copy-Item $libgit2Binaries "$Env:APPVEYOR_BUILD_FOLDER\GitTfs\bin\$env:Config\NativeBinaries" -Recurse
      }
      Get-ChildItem .\packages -Recurse -Filter Microsoft.WITDataStore*.dll | Copy-Item -Destination "$Env:APPVEYOR_BUILD_FOLDER\GitTfs\bin\$env:Config\GitTfs.Vs2015\"
      $zipFile= "git-tfs_$Env:APPVEYOR_REPO_COMMIT.zip"
      7z a $zipFile "$Env:APPVEYOR_BUILD_FOLDER\GitTfs\bin\$env:Config\*" -xr!"*.pdb"
      git config --global user.name "For gittfs test"
      git config --global user.email <EMAIL>
test:
  assemblies: '**\GitTfsTest.dll'
after_test:
  - ps: |
      & ".\FunctionalTesting\smoke_tests.ps1" "$Env:APPVEYOR_BUILD_FOLDER\GitTfs\bin\$env:Config"
      Push-AppveyorArtifact $zipFile
      Get-ChildItem .\GitTfs.Setup\GitTfs-*.msi | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
<commit_msg>[For Test] Push artifact earlier<commit_after>﻿#appveyor.yml reference: http://www.appveyor.com/docs/appveyor-yml
version: 0.25.1.{build}
platform: x86
clone_folder: c:\gittfs
clone_depth: 1
# build cache to preserve files/folders between builds
cache:
  - packages -> paket.lock  # preserve "packages" directory in the root of build folder but will reset it if `paket.lock` is modified
init: []
install:
  - choco install tfs2010objectmodel -y
before_build:
  - ps: $env:Config = "Release"
build_script:
  - msbuild GitTfs.sln /t:GitTfs_Vs2010 /t:GitTfs_Vs2012 /t:GitTfs_Vs2013 /t:GitTfs_Vs2015 /t:GitTfsTest /verbosity:minimal /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /nologo /p:BuildInParallel=true /m:4
after_build:
  - ps: |
      if ( ! (Test-Path -Path "$Env:APPVEYOR_BUILD_FOLDER\GitTfs\bin\$env:Config\NativeBinaries")) {
        $libgit2Binaries=Get-ChildItem ".\packages\" -Filter "LibGit2Sharp.NativeBinaries\runtimes\win7-x86\native" -Recurse | Select-Object -First 1 | % { $_.FullName }
        Copy-Item $libgit2Binaries "$Env:APPVEYOR_BUILD_FOLDER\GitTfs\bin\$env:Config\NativeBinaries" -Recurse
      }
      Get-ChildItem .\packages -Recurse -Filter Microsoft.WITDataStore*.dll | Copy-Item -Destination "$Env:APPVEYOR_BUILD_FOLDER\GitTfs\bin\$env:Config\GitTfs.Vs2015\"
      $zipFile= "git-tfs_$Env:APPVEYOR_REPO_COMMIT.zip"
      7z a $zipFile "$Env:APPVEYOR_BUILD_FOLDER\GitTfs\bin\$env:Config\*" -xr!"*.pdb"
      Push-AppveyorArtifact $zipFile
      git config --global user.name "For gittfs test"
      git config --global user.email <EMAIL>
test:
  assemblies: '**\GitTfsTest.dll'
after_test:
  - ps: |
      & ".\FunctionalTesting\smoke_tests.ps1" "$Env:APPVEYOR_BUILD_FOLDER\GitTfs\bin\$env:Config"
      Get-ChildItem .\GitTfs.Setup\GitTfs-*.msi | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }

{'fraction_non_alphanumeric': 0.13705179282868526, 'fraction_numerical': 0.021779548472775564, 'mean_word_length': 4.19448275862069, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6131826', 'n_tokens_mistral': 1545, 'n_tokens_neox': 1427, 'n_words': 252}