]> git.lizzy.rs Git - rust.git/blob - .appveyor.yml
Remove stable cargo feature `default-run`
[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     - auto
13     - try
14
15 cache:
16     - '%USERPROFILE%\.cargo'
17     - '%USERPROFILE%\.rustup'
18
19 install:
20     # Install Rust
21     - curl -sSf -o rustup-init.exe https://win.rustup.rs/
22     - rustup-init.exe -y --default-host %TARGET% --default-toolchain beta
23     - set PATH=%USERPROFILE%\.cargo\bin;%PATH%
24     - rustup update beta
25     # Install "master" toolchain
26     - cargo install rustup-toolchain-install-master & exit 0
27     - set /p RUSTC_HASH=<rust-version
28     - rustup-toolchain-install-master -f -n master %RUSTC_HASH% -c rust-src
29     - rustup default master
30     - rustc --version
31
32 build_script:
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\rust-lang\miri\cache\HOST
40
41 test_script:
42     - set RUST_TEST_NOCAPTURE=1
43     - set RUST_BACKTRACE=1
44     # Test miri
45     - cargo test --release --all-features
46     # Test cargo integration
47     - cd test-cargo-miri
48     - '"C:\msys64\mingw64\bin\python3.exe" run-test.py'
49
50 after_test:
51     # Don't cache "master" toolchain, it's a waste
52     - rustup default beta
53     - rustup toolchain uninstall master
54
55 notifications:
56     - provider: Email
57       on_build_success: false