<commit_before>branches:
  only:
    - master

environment:
  matrix:
  - TARGET: x86_64-pc-windows-msvc
    FEATURES: " "
  - TARGET: i686-pc-windows-msvc
    FEATURES: " "
  - TARGET: i686-pc-windows-gnu
    FEATURES: " "
  - TARGET: x86_64-pc-windows-msvc
    FEATURES: "winrt"
  - TARGET: i686-pc-windows-gnu
    FEATURES: "winrt"
install:
  - ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-nightly-${env:TARGET}.exe"
  - rust-nightly-%TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust"
  - SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin
  - SET PATH=%PATH%;C:\MinGW\bin
  - rustc -V
  - cargo -V

build: false

test_script:
  - cargo build --verbose --features "%FEATURES%"<commit_msg>Run some tests on AppVeyor<commit_after>branches:
  only:
    - master

environment:
  matrix:
  - TARGET: x86_64-pc-windows-msvc
    FEATURES: " "
  - TARGET: i686-pc-windows-msvc
    FEATURES: " "
  - TARGET: i686-pc-windows-gnu
    FEATURES: " "
  - TARGET: x86_64-pc-windows-msvc
    FEATURES: "winrt"
  - TARGET: i686-pc-windows-gnu
    FEATURES: "winrt"
install:
  - ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-nightly-${env:TARGET}.exe"
  - rust-nightly-%TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust"
  - SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin
  - SET PATH=%PATH%;C:\MinGW\bin
  - rustc -V
  - cargo -V

build_script:
  - cargo build --verbose --features "%FEATURES%"

test_script:
  - cargo test --features "%FEATURES%"
  - cargo run --features "%FEATURES%" --example test_list_ports
{'fraction_non_alphanumeric': 0.1631612492033142, 'fraction_numerical': 0.02676864244741874, 'mean_word_length': 3.0256410256410255, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1487485', 'n_tokens_mistral': 656, 'n_tokens_neox': 621, 'n_words': 112}