docmatic 0.1.1

Test Rust examples in your documentation.
Documentation
environment:
  global:
    TARGET: x86_64-pc-windows-msvc
    CHANNEL: stable
  matrix:
  - CHANNEL: 1.22.0 # oldest supported version
  - CHANNEL: stable
  - CHANNEL: beta
  - CHANNEL: nightly

install:
- ps: >-
    $Env:PATH += ';C:\msys64\usr\bin'
- curl -sSf -o rustup-init.exe https://win.rustup.rs/
- rustup-init.exe -y --default-host %TARGET% --default-toolchain %CHANNEL%
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- rustc -Vv
- cargo -V

test_script:
  - cargo test --verbose

cache:
- C:\Users\appveyor\.cargo\registry
- target

notifications:
- provider: Email
  on_build_success: false

# Building is done in the test phase, so we disable Appveyor's build phase.
build: false