]> git.lizzy.rs Git - rust.git/blob - .appveyor.yml
Auto merge of #1586 - RalfJung:available-concurrency, r=RalfJung
[rust.git] / .appveyor.yml
1 build: off # No Visual Studio auto-build.
2 environment:
3   global:
4     PROJECT_NAME: miri
5   matrix:
6     - HOST_TARGET: i686-pc-windows-msvc
7 matrix:
8   fast_finish: true # Immediately finish build once one of the jobs fails.
9 cache:
10 - '%USERPROFILE%\.cargo'
11 - '%USERPROFILE%\.rustup'
12
13 # branches to build
14 branches:
15   # whitelist
16   only:
17   - auto
18   - try
19
20 install:
21 # Compute the Rust version we use.
22 - set /p RUSTC_HASH=<rust-version
23 # Install Rust. We use the "stable" toolchain for better caching, it is just used to build `rustup-toolchain-install-master`.
24 # But we also need to take into account that the build cache might have a different, outdated default.
25 - curl -sSf --retry 3 -o rustup-init.exe https://win.rustup.rs/
26 - rustup-init.exe -y --default-host %HOST_TARGET% --default-toolchain none --profile minimal
27 - set PATH=%USERPROFILE%\.cargo\bin;%PATH%
28 - rustup default stable
29 - rustup toolchain uninstall beta nightly
30 - rustup update
31 # Install "master" toolchain.
32 - cargo install rustup-toolchain-install-master
33 - rustup-toolchain-install-master -f -n master %RUSTC_HASH% -c rust-src -c rustc-dev -c llvm-tools
34 - rustup default master
35 - rustc --version
36 - cargo --version
37
38 test_script:
39 # Add python3 path: https://www.appveyor.com/docs/windows-images-software/#python
40 - set PATH=C:\Python35-x64;%PATH%
41 - bash ci.sh
42
43 after_test:
44 # Don't cache "master" toolchain, it's a waste.
45 - rustup default stable
46 - rustup toolchain uninstall master
47
48 notifications:
49 - provider: Email
50   on_build_success: false