]> git.lizzy.rs Git - rust.git/blob - .appveyor.yml
Revert "temporarily ignore cached rustup-toolchain-install-master"
[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 matrix:
16   fast_finish: true     # set this flag to immediately finish build once one of the jobs fails.
17
18 cache:
19     - '%USERPROFILE%\.cargo'
20     - '%USERPROFILE%\.rustup'
21
22 install:
23     # Compute the rust version we use
24     - set /p RUSTC_HASH=<rust-version
25     # Install Rust
26     - curl -sSf --retry 3 -o rustup-init.exe https://win.rustup.rs/
27     - rustup-init.exe -y --default-host %TARGET% --default-toolchain stable --profile minimal
28     - set PATH=%USERPROFILE%\.cargo\bin;%PATH%
29     - rustup default stable
30     - rustup uninstall beta
31     - rustup component remove rust-docs & exit 0
32     - rustup update
33     # Install "master" toolchain
34     - cargo install rustup-toolchain-install-master & exit 0
35     # We need to install cargo here as well or else the DLL search path inside `cargo run`
36     # will be for the wrong toolchain. (On Unix, `./miri` takes care of this, but not here.)
37     - rustup-toolchain-install-master -f -n master %RUSTC_HASH% -c rust-src -c rustc-dev -c cargo
38     - rustup default master
39     - rustc --version
40     - cargo --version
41
42 build_script:
43     - set RUSTFLAGS=-C debug-assertions
44     # Build and install miri
45     - cargo build --release --all-features --all-targets --locked
46     - cargo install --all-features --force --path . --locked --offline
47     # Get ourselves a MIR-full libstd, and use it henceforth
48     - cargo miri setup
49     - set MIRI_SYSROOT=%USERPROFILE%\AppData\Local\rust-lang\miri\cache\HOST
50
51 test_script:
52     - set RUST_TEST_NOCAPTURE=1
53     - set RUST_BACKTRACE=1
54     # Test miri
55     - cargo test --release --all-features --locked
56     # Test cargo integration
57     - cd test-cargo-miri
58     - '"C:\msys64\mingw64\bin\python3.exe" run-test.py'
59
60 after_test:
61     # Don't cache "master" toolchain, it's a waste
62     - rustup default stable
63     - rustup toolchain uninstall master
64
65 notifications:
66     - provider: Email
67       on_build_success: false