Fix build failures for msvc targets
[tutil.git] / appveyor.yml
blob1cdbe0fe0e214b4a5fb8a860d876d215fc184928
1 environment:
2   matrix:
3   - TARGET: x86_64-pc-windows-msvc
4   - TARGET: x86_64-pc-windows-gnu
5   - TARGET: i686-pc-windows-msvc
6   - TARGET: i686-pc-windows-gnu
8 install:
9   - ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-nightly-${env:TARGET}.exe"
10   - rust-nightly-%TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust"
11   - SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin
12   - SET PATH=%PATH%;C:\MinGW\bin
13   - rustc -Vv
14   - cargo -V
16 build:
17   # TODO: Improve the conditionals
18   # Compile without Clippy, as some of Clippy's dependencies seem to have
19   # problems on these targets.
20   - if "%TARGET%" == "x86_64-pc-windows-msvc" cargo build --verbose
21   - if "%TARGET%" == "i686-pc-windows-msvc" cargo build --verbose
22   - if "%TARGET%" == "x86_64-pc-windows-gnu" cargo build --verbose --features lints
23   - if "%TARGET%" == "i686-pc-windows-gnu" cargo build --verbose --features lints
24   - cargo package
26 test_script:
27   - cargo test --verbose