dist: xenial
language: rust
env: RUST_BACKTRACE=1
matrix:
  include:
    - os: linux
      rust: 1.46.0
      env: TARGET=x86_64-unknown-linux-gnu EXTRA_ARGS=""
    - os: linux
      rust: nightly
      env: TARGET=x86_64-unknown-linux-gnu EXTRA_ARGS=""
    - os: osx
      rust: stable
      env: TARGET=x86_64-apple-darwin EXTRA_ARGS=""
    - os: windows
      rust: beta
      env: TARGET=x86_64-pc-windows-msvc EXTRA_ARGS="--exclude=evcxr_jupyter"
  fast_finish: true

install:
  # prevent target re-add error from rustup
  - if [[ "$TRAVIS_OS_NAME" == "linux" && "$TARGET" != "x86_64-unknown-linux-gnu" ]]; then rustup target add $TARGET; fi
  - rustup component add rust-src

before_script:
  - rustup -V; rustc -V; cargo -V
  - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then rm "C:/Program Files/Git/usr/bin/sh.exe"; fi

script:
  - travis_wait 40 cargo test --release --verbose --all $EXTRA_ARGS
  - cargo run --release -p print_performance_info

notifications:
  email:
    - dvdlttmr@gmail.com

dist: xenial
language: rust
env: RUST_BACKTRACE=1
matrix:
  include:
    - os: linux
      rust: 1.51.0
      env: TARGET=x86_64-unknown-linux-gnu EXTRA_ARGS=""
    - os: linux
      rust: nightly
      env: TARGET=x86_64-unknown-linux-gnu EXTRA_ARGS=""
    - os: osx
      rust: stable
      env: TARGET=x86_64-apple-darwin EXTRA_ARGS=""
    - os: windows
      rust: beta
      env: TARGET=x86_64-pc-windows-msvc EXTRA_ARGS="--exclude=evcxr_jupyter"
  fast_finish: true

install:
  # prevent target re-add error from rustup
  - if [[ "$TRAVIS_OS_NAME" == "linux" && "$TARGET" != "x86_64-unknown-linux-gnu" ]]; then rustup target add $TARGET; fi
  - rustup component add rust-src

before_script:
  - rustup -V; rustc -V; cargo -V
  - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then rm "C:/Program Files/Git/usr/bin/sh.exe"; fi

script:
  - travis_wait 40 cargo test --release --verbose --all $EXTRA_ARGS
  - cargo run --release -p print_performance_info

notifications:
  email:
    - dvdlttmr@gmail.com

Increase minimum supported rust version to 1.51
Increase minimum supported rust version to 1.51

This is because we updated to the latest rust-analyzer which depends on
a recent version of arrayvec, which not surprisingly, is already taking
advantage of const generics.
