Skip to content

Commit 9fc82c0

Browse files
committed
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.
1 parent bec2d41 commit 9fc82c0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.travis.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,15 @@ env:
1313
- RELEASE=
1414
- RELEASE=--release
1515

16+
install:
17+
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then rustup target add x86_64-pc-windows-msvc; fi
18+
1619
script:
1720
# We cannot run `cargo test` with the mp4parse_fallible feature enabled
1821
# (see comment where the feature is defined in mp4parse_capi/Cargo.toml),
1922
# but we can at least check for changes behind features that would break the
2023
# build.
2124
- cargo check --all --verbose $RELEASE --tests --all-features
22-
- cargo test --all --verbose $RELEASE
25+
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then export TARGET=--target=x86_64-pc-windows-msvc; fi
26+
- cargo test --all --verbose $RELEASE $TARGET
2327
- cargo doc --package mp4parse_capi

0 commit comments

Comments
 (0)