environment:
  matrix:
  - TOOLCHAIN: stable
    FEATURES: "hyphenation"
  - TOOLCHAIN: nightly
    FEATURES: "hyphenation"

matrix:
  allow_failures:
    - TOOLCHAIN: nightly

install:
  - ps: Start-FileDownload 'https://static.rust-lang.org/rustup/dist/i686-pc-windows-gnu/rustup-init.exe'
  - rustup-init.exe -y --default-toolchain %TOOLCHAIN%
  - set PATH=%PATH%;%USERPROFILE%\.cargo\bin

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

test_script:
  - cargo test --verbose --features "%FEATURES%"

cache:
  - '%USERPROFILE%\.cargo'
  - target
