]> git.lizzy.rs Git - rust.git/blob - .appveyor.yml
Auto merge of #1284 - vakaras:add-threads-cr2, r=RalfJung
[rust.git] / .appveyor.yml
1 environment:
2     global:
3         PROJECT_NAME: miri
4     matrix:
5         - TARGET: i686-pc-windows-msvc
6
7 # branches to build
8 branches:
9   # whitelist
10   only:
11     - auto
12     - try
13
14 matrix:
15   fast_finish: true     # set this flag to immediately finish build once one of the jobs fails.
16
17 cache:
18     - '%USERPROFILE%\.cargo'
19     - '%USERPROFILE%\.rustup'
20
21 install:
22     # Compute the rust version we use
23     - set /p RUSTC_HASH=<rust-version
24     # Install Rust
25     - curl -sSf --retry 3 -o rustup-init.exe https://win.rustup.rs/
26     - rustup-init.exe -y --default-host %TARGET% --default-toolchain stable --profile minimal
27     - set PATH=%USERPROFILE%\.cargo\bin;%PATH%
28     - rustup default stable
29     - rustup toolchain uninstall beta
30     - rustup update
31     # Install "master" toolchain
32     - cargo install rustup-toolchain-install-master
33     # We need to install cargo here as well or else the DLL search path inside `cargo run`
34     # will be for the wrong toolchain. (On Unix, `./miri` takes care of this, but not here.)
35     - rustup-toolchain-install-master -f -n master %RUSTC_HASH% -c rust-src -c rustc-dev -c cargo
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
46 test_script:
47     - set RUST_TEST_NOCAPTURE=1
48     - set RUST_BACKTRACE=1
49     - set CARGO_INCREMENTAL=0
50     # Test host miri: 32bit Windows
51     - cargo miri setup
52     - set MIRI_SYSROOT=%USERPROFILE%\AppData\Local\rust-lang\miri\cache\HOST
53     - cargo test --release --all-features --locked
54     - cd test-cargo-miri
55     - '"C:\msys64\mingw64\bin\python3.exe" run-test.py'
56     - cd ..
57     - ps: $env:MIRI_SYSROOT = ""
58     # Test foreign miri: 64bit Linux
59     - cargo miri setup --target x86_64-unknown-linux-gnu
60     - set MIRI_SYSROOT=%USERPROFILE%\AppData\Local\rust-lang\miri\cache
61     - set MIRI_TEST_TARGET=x86_64-unknown-linux-gnu
62     - cargo test --release --all-features --locked
63     - cd test-cargo-miri
64     - '"C:\msys64\mingw64\bin\python3.exe" run-test.py'
65     - cd ..
66     - ps: $env:MIRI_SYSROOT = ""
67     # Test foreign miri: 64bit macOS
68     - cargo miri setup --target x86_64-apple-darwin
69     - set MIRI_SYSROOT=%USERPROFILE%\AppData\Local\rust-lang\miri\cache
70     - set MIRI_TEST_TARGET=x86_64-apple-darwin
71     - cargo test --release --all-features --locked
72     - cd test-cargo-miri
73     - '"C:\msys64\mingw64\bin\python3.exe" run-test.py'
74     - cd ..
75     - ps: $env:MIRI_SYSROOT = ""
76
77 after_test:
78     # Don't cache "master" toolchain, it's a waste
79     - rustup default stable
80     - rustup toolchain uninstall master
81
82 notifications:
83     - provider: Email
84       on_build_success: false