Skip to content

Commit

Permalink
Switch Windows CI builds from windows-gnu to windows-msvc.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kinetiknz committed Mar 6, 2020
1 parent efc5683 commit e016f10
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e016f10

Please sign in to comment.