]> git.lizzy.rs Git - rust.git/blob - .appveyor.yml
test exact_div UB detection
[rust.git] / .appveyor.yml
1 environment:
2     global:
3         PROJECT_NAME: miri
4     matrix:
5         - TARGET: x86_64-pc-windows-msvc
6         - TARGET: i686-pc-windows-msvc
7
8 # branches to build
9 branches:
10   # whitelist
11   only:
12     - master
13
14 cache:
15     - '%USERPROFILE%\.cargo'
16     - '%USERPROFILE%\.rustup'
17
18 install:
19     # Install Rust
20     - curl -sSf -o rustup-init.exe https://win.rustup.rs/
21     - rustup-init.exe -y --default-host %TARGET% --default-toolchain stable
22     - set PATH=%USERPROFILE%\.cargo\bin;%PATH%
23     # Install "master" toolchain
24     - cargo install rustup-toolchain-install-master & exit 0
25     - set /p RUSTC_HASH=<rust-version
26     - rustup-toolchain-install-master -f -n master %RUSTC_HASH% -c cargo -c rust-src
27     - rustup default master
28     - rustc --version
29
30 build_script:
31     - set RUST_TEST_NOCAPTURE=1
32     - set RUST_BACKTRACE=1
33     - set RUSTFLAGS=-C debug-assertions
34     # Build and install miri
35     - cargo build --release --all-features --all-targets
36     - cargo install --all-features --force --path . --locked --offline
37     # Get ourselves a MIR-full libstd, and use it henceforth
38     - cargo miri setup
39     - set MIRI_SYSROOT=%USERPROFILE%\AppData\Local\miri\miri\cache\HOST
40
41 test_script:
42     # Test miri
43     - cargo test --release --all-features
44     # Test cargo integration
45     - cd test-cargo-miri
46     - '"C:\msys64\mingw64\bin\python3.exe" run-test.py'
47
48 after_test:
49     # Don't cache "master" toolchain, it's a waste
50     - rustup default stable
51     - rustup toolchain uninstall master
52
53 notifications:
54     - provider: Email
55       on_build_success: false