docmatic 0.1.2

Test Rust examples in your documentation.
Documentation
environment:
  global:
    TARGET: x86_64-pc-windows-msvc
    CHANNEL: stable
  matrix:
  - CHANNEL: 1.24.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:
- del /S/Q target\\debug\\deps\\*docmatic* || echo Not present  # Avoid link problems with cached versions
- 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