Skip to content

Commit 399fb81

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 5d227dc commit 399fb81

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.travis.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,24 @@ os:
77
- linux
88
- osx
99
- windows
10-
10+
1111
env:
1212
matrix:
1313
- RELEASE=
1414
- RELEASE=--release
1515

16-
before_script:
17-
# rustfmt may not always be available in nightly
18-
- if [[ "$TRAVIS_RUST_VERSION" != *nightly* ]]; then rustup component add rustfmt; fi
16+
install:
17+
# rustfmt may not always be available in nightly
18+
- if [[ "$TRAVIS_RUST_VERSION" != *nightly* ]]; then rustup component add rustfmt; fi
19+
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then T=x86_64-pc-windows-msvc; rustup target add $T; TARGET=--target=$T; fi
1920

2021
script:
2122
# We cannot run `cargo test` with the mp4parse_fallible feature enabled
2223
# (see comment where the feature is defined in mp4parse_capi/Cargo.toml),
2324
# but we can at least check for changes behind features that would break the
2425
# build.
2526
- cargo check --all --verbose $RELEASE --tests --all-features
26-
- cargo test --all --verbose $RELEASE
27+
- cargo test --all --verbose $RELEASE $TARGET
2728
- cargo doc --package mp4parse_capi
2829
# The `false` after `echo` is necessary to avoid false negatives due to `echo` returning success
2930
- if [[ "$TRAVIS_RUST_VERSION" != *nightly* ]]; then cargo fmt -- --check || (echo "Please reformat your code with 'cargo fmt' (version $(cargo fmt -- --version))"; false); fi

0 commit comments

Comments
 (0)