<commit_before>platform:
  - x86

branches:
  except:
    - coverity

skip_branch_with_pr: true

install:
  - set PATH=C:\cygwin\bin;%PATH%
  - set DIST=ots-windows-dist
  - appveyor DownloadFile "http://raw.githubusercontent.com/swig/cccl/master/cccl"
  - call "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat" %PLATFORM%

build_script:
  - set CC=./cccl
  - set CXX=./cccl
  - set CXXFLAGS='-D_HAS_EXCEPTIONS=0 -D_STATIC_CPPLIB'
  - bash -c "./autogen.sh && ./configure --enable-debug --prefix=$PWD/$DIST"
  - make

test_script:
  - make check

after_build:
  - ps: $env:GIT_HASH = $env:APPVEYOR_REPO_COMMIT.Substring(0, 10)
  - set ARCHIVE=ots-windows-%GIT_HASH%
  - if %APPVEYOR_REPO_TAG%==true (
      set ARCHIVE=ots-windows-%APPVEYOR_REPO_TAG_NAME%
    )
  - make install
  - mkdir -p %ARCHIVE%
  - cp %DIST%/bin/* %ARCHIVE%
  - 7z a %ARCHIVE%.zip %ARCHIVE%

artifacts:
  - path: /ots-windows-*.zip/<commit_msg>[ci] Deploy AppVeyor build artifacts<commit_after>platform:
  - x86

branches:
  except:
    - coverity

skip_branch_with_pr: true

install:
  - set PATH=C:\cygwin\bin;%PATH%
  - set DIST=ots-windows-dist
  - appveyor DownloadFile "http://raw.githubusercontent.com/swig/cccl/master/cccl"
  - call "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat" %PLATFORM%

build_script:
  - set CC=./cccl
  - set CXX=./cccl
  - set CXXFLAGS='-D_HAS_EXCEPTIONS=0 -D_STATIC_CPPLIB'
  - bash -c "./autogen.sh && ./configure --enable-debug --prefix=$PWD/$DIST"
  - make

test_script:
  - make check

after_build:
  - ps: $env:GIT_HASH = $env:APPVEYOR_REPO_COMMIT.Substring(0, 10)
  - set ARCHIVE=ots-windows-%GIT_HASH%
  - if %APPVEYOR_REPO_TAG%==true (set ARCHIVE=ots-windows-%APPVEYOR_REPO_TAG_NAME%)
  - make install
  - mkdir -p %ARCHIVE%
  - cp %DIST%/bin/* %ARCHIVE%
  - 7z a %ARCHIVE%.zip %ARCHIVE%

artifacts:
  - path: /ots-windows-*.zip/

deploy:
  provider: GitHub
  auth_token:
    secure: "<KEY>"
  draft: true
  on:
    appveyor_repo_tag: true
{'fraction_non_alphanumeric': 0.15816589386913962, 'fraction_numerical': 0.010303967027305513, 'mean_word_length': 3.2309368191721135, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '2676576', 'n_tokens_mistral': 861, 'n_tokens_neox': 826, 'n_words': 138}