git2 0.9.2

Bindings to libgit2 for interoperating with git repositories. This library is both threadsafe and memory safe and allows both reading and writing git repositories.
Documentation
trigger:
  - master

jobs:
  - job: rustfmt
    pool:
      vmImage: ubuntu-16.04
    steps:
      - template: ci/azure-install-rust.yml
      - bash: |
          set -ex
          rustup component add rustfmt
          cargo fmt --all -- --check
        displayName: "rustfmt check"
    variables:
      TOOLCHAIN: stable

  - job: MSRV
    pool:
      vmImage: ubuntu-16.04
    steps:
      - template: ci/azure-install-rust.yml
      - script: cargo build
        displayName: "Build crate"
    variables:
      TOOLCHAIN: 1.33.0

  - job: Linux
    pool:
      vmImage: ubuntu-16.04
    steps:
      - template: ci/azure-test-all.yml
    strategy:
      matrix:
        stable:
          TOOLCHAIN: stable
        beta:
          TOOLCHAIN: beta
        nightly:
          TOOLCHAIN: nightly

  - job: macOS
    pool:
      vmImage: macos-10.13
    steps:
      - template: ci/azure-test-all.yml
    variables:
      TOOLCHAIN: stable

  - job: Windows
    pool:
      vmImage: vs2017-win2016
    steps:
      - template: ci/azure-test-all.yml
    strategy:
      matrix:
        x86_64-msvc:
          TOOLCHAIN: stable-x86_64-pc-windows-msvc
        i686-msvc:
          TOOLCHAIN: stable-i686-pc-windows-msvc