<commit_before>version: 1.0.{build}
image: Visual Studio 2017
configuration: Release
clone_depth: 5
init:
- cmd: set PATH=C:\Python35;C:\Python35\Scripts;%path%
environment:
  latestcommit: false
  notifyall: true
before_build:
- ps: |
    git clone -q --depth=5 --branch=master https://github.com/kwsch/PKHeX.git C:\projects\pkhex
    Set-Location -Path "C:\projects\pkhex\pkhex.winforms"
    Copy-Item "C:\projects\pkhex-auto-legality-mod\AutoLegality" "C:\projects\pkhex\pkhex.winforms" -recurse
    Copy-Item "C:\projects\pkhex-auto-legality-mod\Addons (Optional)\PGL QR Auto Legality\PGLRentalLegality" "C:\projects\pkhex\pkhex.winforms" -recurse
    Copy-Item "C:\projects\pkhex-auto-legality-mod\Addons (Optional)\MGDB Downloader\MGDBDownloader" "C:\projects\pkhex\pkhex.winforms" -recurse
    Copy-Item "C:\projects\pkhex-auto-legality-mod\Addons (Optional)\URL Genning\URLGenning" "C:\projects\pkhex\pkhex.winforms" -recurse
    Copy-Item "C:\projects\pkhex-auto-legality-mod\Addons (Optional)\Export Trainer Data\ExportTrainerData" "C:\projects\pkhex\pkhex.winforms" -recurse
    Copy-Item "C:\projects\pkhex-auto-legality-mod\Addons (Optional)\Smogon Genner\SmogonGenner" "C:\projects\pkhex\pkhex.winforms" -recurse
    Copy-Item C:\projects\pkhex-auto-legality-mod\build-mod.py C:\projects\pkhex\pkhex.winforms
    pip3.5 install lxml 2> $null
    python build-mod.py
    Set-Location -Path "C:\projects\pkhex"
    $env:pkhex_commit = $(git rev-parse --short HEAD)
    $env:mod_commit = $env:APPVEYOR_REPO_COMMIT.Substring(0,7)
    Add-AppveyorMessage $env:pkhex_commit
    Add-AppveyorMessage $env:mod_commit
    if ($env:notifyall -eq "true") { Add-AppveyorMessage "notify" }
    nuget restore
build_script:
- ps: msbuild C:\projects\pkhex\PKHeX.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /verbosity:minimal /p:DefineConstants=UNSAFEDLL /p:Configuration=Release
before_package:
- cmd: xcopy C:\projects\pkhex\pkhex.winforms\bin\release C:\projects\pkhex-auto-legality-mod\bin /e /i /h
after_build:
- ps: |
    nuget install ILMerge -ExcludeVersion
    Set-Location -Path "C:\projects\pkhex\ILMerge\tools"
    Copy-Item "C:\projects\pkhex\pkhex.winforms\bin\release\PKHeX.exe" "C:\projects\pkhex\ILMerge\tools"
    Copy-Item "C:\projects\pkhex\pkhex.winforms\bin\release\PKHeX.Core.dll" "C:\projects\pkhex\ILMerge\tools"
    Copy-Item "C:\projects\pkhex\pkhex.winforms\bin\release\BouncyCastle.CryptoExt.dll" "C:\projects\pkhex\ILMerge\tools"
    ilmerge /targetplatform:v4,"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6" /out:PKHeX_ArchitModUSUM.exe PKHeX.exe PKHeX.Core.dll BouncyCastle.CryptoExt.dll
    Set-Location -Path "C:\projects\pkhex-auto-legality-mod"
    New-Item -ItemType directory -Path merged
    Copy-Item "C:\projects\pkhex\ILMerge\tools\PKHeX_ArchitModUSUM.exe" "C:\projects\pkhex-auto-legality-mod\merged"
artifacts:
- path: bin
  name: PKHeX-$(pkhex_commit)-Auto-Legality-Mod-$(mod_commit)<commit_msg>temp fix to get builds moving<commit_after>version: 1.0.{build}
image: Visual Studio 2017
configuration: Release
clone_depth: 5
init:
- cmd: set PATH=C:\Python35;C:\Python35\Scripts;%path%
environment:
  latestcommit: false
  notifyall: true
before_build:
- ps: |
    git clone -q --depth=5 --branch=master https://github.com/kwsch/PKHeX.git C:\projects\pkhex
    Set-Location -Path "C:\projects\pkhex\pkhex.winforms"
    Copy-Item "C:\projects\pkhex-auto-legality-mod\AutoLegality" "C:\projects\pkhex\pkhex.winforms" -recurse
    Copy-Item "C:\projects\pkhex-auto-legality-mod\Addons (Optional)\PGL QR Auto Legality\PGLRentalLegality" "C:\projects\pkhex\pkhex.winforms" -recurse
    Copy-Item "C:\projects\pkhex-auto-legality-mod\Addons (Optional)\MGDB Downloader\MGDBDownloader" "C:\projects\pkhex\pkhex.winforms" -recurse
    Copy-Item "C:\projects\pkhex-auto-legality-mod\Addons (Optional)\URL Genning\URLGenning" "C:\projects\pkhex\pkhex.winforms" -recurse
    Copy-Item "C:\projects\pkhex-auto-legality-mod\Addons (Optional)\Export Trainer Data\ExportTrainerData" "C:\projects\pkhex\pkhex.winforms" -recurse
    Copy-Item "C:\projects\pkhex-auto-legality-mod\Addons (Optional)\Smogon Genner\SmogonGenner" "C:\projects\pkhex\pkhex.winforms" -recurse
    Copy-Item C:\projects\pkhex-auto-legality-mod\build-mod.py C:\projects\pkhex\pkhex.winforms
    pip3.5 install lxml 2> $null
    python build-mod.py
    Set-Location -Path "C:\projects\pkhex"
    $env:pkhex_commit = $(git rev-parse --short HEAD)
    $env:mod_commit = $env:APPVEYOR_REPO_COMMIT.Substring(0,7)
    Add-AppveyorMessage $env:pkhex_commit
    Add-AppveyorMessage $env:mod_commit
    if ($env:notifyall -eq "true") { Add-AppveyorMessage "notify" }
    nuget restore
build_script:
- ps: msbuild C:\projects\pkhex\PKHeX.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /verbosity:minimal /p:DefineConstants=UNSAFEDLL /p:Configuration=Release
before_package:
- cmd: xcopy C:\projects\pkhex\pkhex.winforms\bin\release C:\projects\pkhex-auto-legality-mod\bin /e /i /h
after_build:
- cmd: >-
    nuget install ILMerge -ExcludeVersion
    
    cd "C:\projects\pkhex\ILMerge\tools"
    
    xcopy "C:\projects\pkhex\pkhex.winforms\bin\release\PKHeX.exe" "C:\projects\pkhex\ILMerge\tools"
    
    xcopy "C:\projects\pkhex\pkhex.winforms\bin\release\PKHeX.Core.dll" "C:\projects\pkhex\ILMerge\tools"
    
    xcopy "C:\projects\pkhex\pkhex.winforms\bin\release\BouncyCastle.CryptoExt.dll" "C:\projects\pkhex\ILMerge\tools"
    
    ilmerge /targetplatform:v4,"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6" /out:PKHeX_ArchitModUSUM.exe PKHeX.exe PKHeX.Core.dll BouncyCastle.CryptoExt.dll
    
    cd "C:\projects\pkhex-auto-legality-mod"
    
    mkdir merged
    
    xcopy "C:\projects\pkhex\ILMerge\tools\PKHeX_ArchitModUSUM.exe" "C:\projects\pkhex-auto-legality-mod\merged"
artifacts:
- path: bin
  name: PKHeX-$(pkhex_commit)-Auto-Legality-Mod-$(mod_commit)
- path: merged
  name: PKHeX-$(pkhex_commit)-Auto-Legality-Mod-$(mod_commit)-Merged
{'fraction_non_alphanumeric': 0.14520638052951818, 'fraction_numerical': 0.007235652030915968, 'mean_word_length': 4.349164467897977, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1913233', 'n_tokens_mistral': 2321, 'n_tokens_neox': 2263, 'n_words': 323}