<commit_before>version: '{build}'
init:
  clone_depth: 1

environment:
  matrix:
    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
      qt: 5.15\msvc2019_64
      VS_VERSION: 2019
      WIN_SDK: 10.0.18362.0
      BUILD_ARCH: x64

configuration:
  - Release

install:
 - git submodule update --init --recursive --depth 5
 - dir "C:\Program Files (x86)\Windows Kits\10\include\"
 - cd file-commander-core\core-tests\
 - call "%programfiles(x86)%\Microsoft Visual Studio\%VS_VERSION%\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64 %WIN_SDK% && "C:\Qt\%qt%\bin\qmake.exe" -tp vc -r
 - cd ..\..
 - set QTDIR32="C:\Qt\5.15\msvc2019"
 - set QTDIR64="C:\Qt\%qt%"

build_script:
 - cd installer\windows\
 - create_installer.bat
 - cd ..\..

 - cd file-commander-core\core-tests\
 - msbuild /t:Build /p:Configuration=Release;PlatformToolset=v141
 - cd ..\..

after_build:
 - .\bin\release\%BUILD_ARCH%\FileCommander.exe --test-launch

test_script:
 - .\bin\release\%BUILD_ARCH%\fso_test.exe -s -r junit -o fso_test.xml
 - ps: (new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\fso_test.xml))

 - .\bin\release\%BUILD_ARCH%\fso_test_high_level.exe -s -r junit -o fso_test_high_level.xml
 - ps: (new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\fso_test_high_level.xml))

 - ps: |
     For ($i=1; $i -le 20; $i++) {
       $randomSeed = ((get-date -Uformat %s).remove(10, 1));
       $randomSeed = $randomSeed.substring($randomSeed.Length - 8);
       & .\bin\release\$($env:BUILD_ARCH)\operationperformer_test.exe -s -r junit -o operationperformer_test_$i.xml --std-seed $randomSeed;
       (new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\operationperformer_test_$i.xml));
     }

 - ps: |
    $randomSeed = ((get-date -Uformat %s).remove(10, 1));
    $randomSeed = $randomSeed.substring($randomSeed.Length - 8);
    & .\bin\release\$($env:BUILD_ARCH)\filecomparator_test.exe -s -r junit -o filecomparator_test.xml --std-seed $randomSeed;
    (new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/", (Resolve-Path .\filecomparator_test.xml));

deploy:
  description: $($env:APPVEYOR_REPO_COMMIT_MESSAGE)
  provider: GitHub
  auth_token:
    secure: <KEY>
  artifact: .\installer\windows\FileCommander.exe
  draft: false
  prerelease: true
  on:
    branch: master                 # release from master branch only
    APPVEYOR_REPO_TAG: true        # deploy on tag push only
<commit_msg>appveyor.yml<commit_after>version: '{build}'
init:
  clone_depth: 1

environment:
  matrix:
    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
      qt: 5.15\msvc2019_64
      VS_VERSION: 2019
      WIN_SDK: 10.0.18362.0
      BUILD_ARCH: x64

configuration:
  - Release

install:
 - git submodule update --init --recursive --depth 5
 - dir "C:\Program Files (x86)\Windows Kits\10\include\"
 - cd file-commander-core\core-tests\
 - call "%programfiles(x86)%\Microsoft Visual Studio\%VS_VERSION%\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64 %WIN_SDK% && "C:\Qt\%qt%\bin\qmake.exe" -tp vc -r
 - cd ..\..
 - set QTDIR32="C:\Qt\5.15\msvc2019"
 - set QTDIR64="C:\Qt\%qt%"

build_script:
 - cd installer\windows\
 - create_installer.bat
 - cd ..\..

 - cd file-commander-core\core-tests\
 - msbuild /t:Build /p:Configuration=Release;PlatformToolset=v141
 - cd ..\..

after_build:
 - xcopy /R /Y .\bin\release\x64\*.exe .\installer\windows\binaries\64\
 - cd .\installer\windows\binaries\64\
 - xcopy /R /Y msvcr\* .\
 - xcopy /R /Y Qt\* .\
 - .\installer\windows\binaries\64\FileCommander.exe --test-launch
 - cd ..\..\..\..

test_script:
 - .\bin\release\x64\fso_test.exe -s -r junit -o fso_test.xml
 - ps: (new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\fso_test.xml))

 - .\bin\release\x64\fso_test_high_level.exe -s -r junit -o fso_test_high_level.xml
 - ps: (new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\fso_test_high_level.xml))

 - ps: |
     For ($i=1; $i -le 20; $i++) {
       $randomSeed = ((get-date -Uformat %s).remove(10, 1));
       $randomSeed = $randomSeed.substring($randomSeed.Length - 8);
       & .\bin\release\$($env:BUILD_ARCH)\operationperformer_test.exe -s -r junit -o operationperformer_test_$i.xml --std-seed $randomSeed;
       (new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\operationperformer_test_$i.xml));
     }

 - ps: |
    $randomSeed = ((get-date -Uformat %s).remove(10, 1));
    $randomSeed = $randomSeed.substring($randomSeed.Length - 8);
    & .\bin\release\$($env:BUILD_ARCH)\filecomparator_test.exe -s -r junit -o filecomparator_test.xml --std-seed $randomSeed;
    (new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/", (Resolve-Path .\filecomparator_test.xml));

deploy:
  description: $($env:APPVEYOR_REPO_COMMIT_MESSAGE)
  provider: GitHub
  auth_token:
    secure: <KEY>
  artifact: .\installer\windows\FileCommander.exe
  draft: false
  prerelease: true
  on:
    branch: master                 # release from master branch only
    APPVEYOR_REPO_TAG: true        # deploy on tag push only

{'fraction_non_alphanumeric': 0.16372076414925907, 'fraction_numerical': 0.024638457418318157, 'mean_word_length': 2.9758694109297372, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 16}, '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': '560569', 'n_tokens_mistral': 2301, 'n_tokens_neox': 2051, 'n_words': 346}