]> git.lizzy.rs Git - rust.git/blob - .appveyor.yml
rustup: more flexible write_bytes avoids allocations and removes itertools dependency
[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     - rustup-toolchain-install-master -f -n master %RUSTC_HASH% -c cargo -c rust-src
36     - rustup default master
37     - rustc --version
38     - cargo --version
39
40 build_script:
41     - set RUSTFLAGS=-C debug-assertions
42     # Build and install miri
43     - cargo build --release --all-features --all-targets --locked
44     - cargo install --all-features --force --path . --locked --offline
45     # Get ourselves a MIR-full libstd, and use it henceforth
46     - cargo miri setup
47     - set MIRI_SYSROOT=%USERPROFILE%\AppData\Local\rust-lang\miri\cache\HOST
48
49 test_script:
50     - set RUST_TEST_NOCAPTURE=1
51     - set RUST_BACKTRACE=1
52     # Test miri
53     - cargo test --release --all-features --locked
54     # Test cargo integration
55     - cd test-cargo-miri
56     - '"C:\msys64\mingw64\bin\python3.exe" run-test.py'
57
58 after_test:
59     # Don't cache "master" toolchain, it's a waste
60     - rustup default stable
61     - rustup toolchain uninstall master
62
63 notifications:
64     - provider: Email
65       on_build_success: false