language: rust
osx_image: xcode9.2

rust:
  - 1.28.0
  - nightly

os:
  - linux
  - osx
  - windows

matrix:
  allow_failures:
    - rust: nightly

# windows builds run in git bash so these (should) Just Work
cache:
  directories:
    - $HOME/.cargo

script:
  - cd rust
  - export CARGO_TARGET_DIR=/tmp/target
  - export RUST_BACKTRACE=1
  - RUSTFLAGS="-D warnings" cargo check --all || exit
  - cargo test --all || exit

language: rust
osx_image: xcode9.2

rust:
  - 1.28.0
  - nightly

os:
  - linux
  - osx
  - windows

matrix:
  allow_failures:
    - rust: nightly

# on windows, rustup installs the msvc toolchain by default so we need link.exe
before_script:
  - if [ "$TRAVIS_OS_NAME" = 'windows' ]; then choco install windows-sdk-10.0; fi

# windows builds run in git bash so these (should) Just Work
cache:
  directories:
    - $HOME/.cargo

script:
  - cd rust
  - export CARGO_TARGET_DIR=/tmp/target
  - export RUST_BACKTRACE=1
  - RUSTFLAGS="-D warnings" cargo check --all || exit
  - cargo test --all || exit

Install link.exe on windows builds
Install link.exe on windows builds
