]> git.lizzy.rs Git - rust.git/blob - .appveyor.yml
update Rust
[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 --retry 3 -o rustup-init.exe https://win.rustup.rs/
22     - rustup-init.exe -y --default-host %TARGET% --default-toolchain stable
23     - set PATH=%USERPROFILE%\.cargo\bin;%PATH%
24     # Install "master" toolchain
25     - cargo install rustup-toolchain-install-master & exit 0
26     - set /p RUSTC_HASH=<rust-version
27     - rustup-toolchain-install-master -f -n master %RUSTC_HASH% -c cargo -c rust-src
28     - rustup default master
29     - rustc --version
30
31 build_script:
32     - set RUSTFLAGS=-C debug-assertions
33     # Build and install miri
34     - cargo build --release --all-features --all-targets
35     - cargo install --all-features --force --path . --locked --offline
36     # Get ourselves a MIR-full libstd, and use it henceforth
37     - cargo miri setup
38     - set MIRI_SYSROOT=%USERPROFILE%\AppData\Local\rust-lang\miri\cache\HOST
39
40 test_script:
41     - set RUST_TEST_NOCAPTURE=1
42     - set RUST_BACKTRACE=1
43     # Test miri
44     - cargo test --release --all-features
45     # Test cargo integration
46     - cd test-cargo-miri
47     - '"C:\msys64\mingw64\bin\python3.exe" run-test.py'
48
49 after_test:
50     # Don't cache "master" toolchain, it's a waste
51     - rustup default stable
52     - rustup toolchain uninstall master
53
54 notifications:
55     - provider: Email
56       on_build_success: false