<commit_before>os: Visual Studio 2015

environment:
  global:
    PROJECT_NAME: indentex
  matrix:
  # Stable 64-bit MSVC
    - channel: stable
      target: x86_64-pc-windows-msvc
  # Beta 64-bit MSVC
    - channel: beta
      target: x86_64-pc-windows-msvc
  # Nightly 64-bit MSVC
    - channel: nightly
      target: x86_64-pc-windows-msvc

matrix:
  allow_failures:
    - channel: nightly

install:
  - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
  - rustup-init -yv --default-toolchain %channel% --default-host %target%
  - set PATH=%PATH%;%USERPROFILE%\.cargo\bin
  - rustc -vV
  - cargo -vV

build: false

before_test:
  - >
    appveyor DownloadFile
    https://raw.githubusercontent.com/minimaxir/big-list-of-naughty-strings/master/blns.txt
    -FileName ./tests/blns/blns.inden.tex

test_script:
  - cargo build
  - cargo test
  - cargo run -- -v ./tests/
  - cargo run -- -v ./tests/empty_folder/  # Check how indentex handles empty folders
  - python ./tests/compare_to_reference.py<commit_msg>Add static linking to CRT in the Appveyor builds<commit_after>os: Visual Studio 2015

environment:
  global:
    PROJECT_NAME: indentex
  matrix:
  # Stable 64-bit MSVC
    - channel: stable
      target: x86_64-pc-windows-msvc
  # Beta 64-bit MSVC
    - channel: beta
      target: x86_64-pc-windows-msvc
  # Nightly 64-bit MSVC
    - channel: nightly
      target: x86_64-pc-windows-msvc

matrix:
  allow_failures:
    - channel: nightly

install:
  - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
  - rustup-init -yv --default-toolchain %channel% --default-host %target%
  - set PATH=%PATH%;%USERPROFILE%\.cargo\bin
  - rustc -vV
  - cargo -vV

build: false

before_test:
  - >
    appveyor DownloadFile
    https://raw.githubusercontent.com/minimaxir/big-list-of-naughty-strings/master/blns.txt
    -FileName ./tests/blns/blns.inden.tex

test_script:
  - set RUSTFLAGS='-C target-feature=+crt-static'
  - cargo build
  - cargo test
  - cargo run -- -v ./tests/
  - cargo run -- -v ./tests/empty_folder/  # Check how indentex handles empty folders
  - python ./tests/compare_to_reference.py
{'fraction_non_alphanumeric': 0.11854951185495119, 'fraction_numerical': 0.020455602045560205, 'mean_word_length': 2.742608695652174, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '7337339', 'n_tokens_mistral': 815, 'n_tokens_neox': 772, 'n_words': 172}