Attempt to use the job matrix instead of re-installing in Windows

pull/23/head
Bradlee Speice 2020-01-12 20:10:56 -05:00
parent b23d08a084
commit 27f9a03617
1 changed files with 9 additions and 9 deletions

View File

@ -1,10 +1,13 @@
language: rust
rust:
- stable
os:
- linux
- osx
- windows
jobs:
include:
- rust: stable
os: linux
- rust: stable
os: osx
- rust: stable-msvc
os: windows
cache:
- cargo
@ -13,9 +16,6 @@ before_script:
- rustup show
# CMake doesn't like the `sh.exe` provided by Git being in PATH
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then rm "C:/Program Files/Git/usr/bin/sh.exe"; fi
# MinGW doesn't implement the `poll` functions we need, so default to MSVC
# TODO: Attempt compilation with MSYS on Travis
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then rustup default stable-x86_64-pc-windows-msvc; fi
- rustup component add clippy
- rustup component add rustfmt