<commit_before>environment:
  matrix:
    - PYTHON: "C:\\Python27"
      RUST_TARGET: "i686-pc-windows-msvc"
    - PYTHON: "C:\\Python33"
      RUST_TARGET: "i686-pc-windows-msvc"
    - PYTHON: "C:\\Python34"
      RUST_TARGET: "i686-pc-windows-msvc"
    - PYTHON: "C:\\Python35"
      RUST_TARGET: "i686-pc-windows-msvc"
    - PYTHON: "C:\\Python27-x64"
      RUST_TARGET: "x86_64-pc-windows-msvc"
    - PYTHON: "C:\\Python33-x64"
      DISTUTILS_USE_SDK: "1"
      RUST_TARGET: "x86_64-pc-windows-msvc"
    - PYTHON: "C:\\Python34-x64"
      DISTUTILS_USE_SDK: "1"
      RUST_TARGET: "x86_64-pc-windows-msvc"
    - PYTHON: "C:\\Python35-x64"
      RUST_TARGET: "x86_64-pc-windows-msvc"

init:
  - reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v UserAuthentication /t REG_DWORD /d 0 /f
  - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

install:
  - "%PYTHON%\\python.exe -m pip install -U wheel cffi pytest distribute setuptools"
  - ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-nightly-${env:RUST_TARGET}.exe"
  - rust-nightly-%RUST_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:
  - ".build.cmd %PYTHON%\\python setup.py bdist_wheel"

test_script:
  - ".build.cmd %PYTHON%\\python -m pip install rust_fst --no-index -f ./dist"
  - ".build.cmd %PYTHON%\\python -m pytest"

on_finish:
  - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

artifacts:
  - path: dist\*<commit_msg>Fix appveyor config some more...<commit_after>environment:
  matrix:
    - PYTHON: "C:\\Python27"
      RUST_TARGET: "i686-pc-windows-msvc"
    - PYTHON: "C:\\Python33"
      RUST_TARGET: "i686-pc-windows-msvc"
    - PYTHON: "C:\\Python34"
      RUST_TARGET: "i686-pc-windows-msvc"
    - PYTHON: "C:\\Python35"
      RUST_TARGET: "i686-pc-windows-msvc"
    - PYTHON: "C:\\Python27-x64"
      RUST_TARGET: "x86_64-pc-windows-msvc"
    - PYTHON: "C:\\Python33-x64"
      DISTUTILS_USE_SDK: "1"
      RUST_TARGET: "x86_64-pc-windows-msvc"
    - PYTHON: "C:\\Python34-x64"
      DISTUTILS_USE_SDK: "1"
      RUST_TARGET: "x86_64-pc-windows-msvc"
    - PYTHON: "C:\\Python35-x64"
      RUST_TARGET: "x86_64-pc-windows-msvc"

# Uncomment for debugging builds via RDP
#init:
#  - reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v UserAuthentication /t REG_DWORD /d 0 /f
#  - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
#
#on_finish:
#  - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

install:
  - "%PYTHON%\\python.exe -m pip install -U wheel cffi pytest distribute setuptools"
  - ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-nightly-${env:RUST_TARGET}.exe"
  - rust-nightly-%RUST_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:
  - ".build.cmd %PYTHON%\\python setup.py bdist_wheel"

test_script:
  - ".build.cmd %PYTHON%\\python -m pip install rust_fst --no-index -f ./dist"
  - ".build.cmd %PYTHON%\\python -m pytest"

artifacts:
  - path: dist\*
{'fraction_non_alphanumeric': 0.16965023409529056, 'fraction_numerical': 0.03359955935004131, 'mean_word_length': 3.23803967327888, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6759883', 'n_tokens_mistral': 1603, 'n_tokens_neox': 1505, 'n_words': 235}