From dbe65851906684819ed453e3dee5d350860dd8c1 Mon Sep 17 00:00:00 2001 From: Matthew Gregan Date: Fri, 6 Mar 2020 18:24:32 +1300 Subject: [PATCH] Switch Windows CI builds from windows-gnu to windows-msvc. The Travis default of windows-gnu suffers from rust-lang/rust#47048, I think. I don't see an easy way to address this right now, but switching our Windows builds to windows-msvc will avoid this and is more realistic target anyway. --- .travis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 4facf375..452ca8e7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,11 +13,15 @@ env: - RELEASE= - RELEASE=--release +install: + - if [ "$TRAVIS_OS_NAME" = "windows" ]; then rustup target add x86_64-pc-windows-msvc; fi + script: # We cannot run `cargo test` with the mp4parse_fallible feature enabled # (see comment where the feature is defined in mp4parse_capi/Cargo.toml), # but we can at least check for changes behind features that would break the # build. - cargo check --all --verbose $RELEASE --tests --all-features - - cargo test --all --verbose $RELEASE + - if [ "$TRAVIS_OS_NAME" = "windows" ]; then export TARGET=--target=x86_64-pc-windows-msvc; fi + - cargo test --all --verbose $RELEASE $TARGET - cargo doc --package mp4parse_capi