]> git.lizzy.rs Git - rust.git/blob - appveyor.yml
Update commit hash in cargotest
[rust.git] / appveyor.yml
1 environment:
2   matrix:
3   # 32/64 bit MSVC
4   - MSYS_BITS: 64
5     RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc
6     RUST_CHECK_TARGET: check
7   - MSYS_BITS: 32
8     RUST_CONFIGURE_ARGS: --build=i686-pc-windows-msvc
9     RUST_CHECK_TARGET: check
10
11   # MSVC makefiles
12   - MSYS_BITS: 64
13     RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --disable-rustbuild
14     RUST_CHECK_TARGET: check
15
16   # MSVC cargotest
17   - MSYS_BITS: 64
18     NO_VENDOR: 1
19     RUST_CHECK_TARGET: check-cargotest
20     RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc
21
22   # 32/64-bit MinGW builds.
23   #
24   # The MinGW builds unfortunately have to both download a custom toolchain and
25   # avoid the one installed by AppVeyor by default. Interestingly, though, for
26   # different reasons!
27   #
28   # For 32-bit the installed gcc toolchain on AppVeyor uses the pthread
29   # threading model. This is unfortunately not what we want, and if we compile
30   # with it then there's lots of link errors in the standard library (undefined
31   # references to pthread symbols).
32   #
33   # For 64-bit the installed gcc toolchain is currently 5.3.0 which
34   # unfortunately segfaults on Windows with --enable-llvm-assertions (segfaults
35   # in LLVM). See rust-lang/rust#28445 for more information, but to work around
36   # this we go back in time to 4.9.2 specifically.
37   #
38   # Finally, note that the downloads below are all in the `rust-lang-ci` S3
39   # bucket, but they cleraly didn't originate there! The downloads originally
40   # came from the mingw-w64 SourceForge download site. Unfortunately
41   # SourceForge is notoriously flaky, so we mirror it on our own infrastructure.
42   #
43   # And as a final point of note, the 32-bit MinGW build using the makefiles do
44   # *not* use debug assertions and llvm assertions. This is because they take
45   # too long on appveyor and this is tested by rustbuild below.
46   - MSYS_BITS: 32
47     RUST_CONFIGURE_ARGS: --build=i686-pc-windows-gnu
48     RUST_CHECK_TARGET: check
49     MINGW_URL: https://s3.amazonaws.com/rust-lang-ci
50     MINGW_ARCHIVE: i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z
51     MINGW_DIR: mingw32
52
53   - MSYS_BITS: 32
54     RUST_CONFIGURE_ARGS: --build=i686-pc-windows-gnu --disable-rustbuild
55     RUST_CHECK_TARGET: check
56     MINGW_URL: https://s3.amazonaws.com/rust-lang-ci
57     MINGW_ARCHIVE: i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z
58     MINGW_DIR: mingw32
59
60   - MSYS_BITS: 64
61     RUST_CHECK_TARGET: check
62     RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-gnu
63     MINGW_URL: https://s3.amazonaws.com/rust-lang-ci
64     MINGW_ARCHIVE: x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z
65     MINGW_DIR: mingw64
66
67 clone_depth: 1
68 build: false
69
70 install:
71   # If we need to download a custom MinGW, do so here and set the path
72   # appropriately.
73   #
74   # Note that this *also* means that we're not using what is typically
75   # /mingw32/bin/python2.7.exe, which is a "correct" python interpreter where
76   # /usr/bin/python2.7.exe is not. To ensure we use the right interpreter we
77   # move `C:\Python27` ahead in PATH and then also make sure the `python2.7.exe`
78   # file exists in there (which it doesn't by default).
79   - if defined MINGW_URL appveyor DownloadFile %MINGW_URL%/%MINGW_ARCHIVE%
80   - if defined MINGW_URL 7z x -y %MINGW_ARCHIVE% > nul
81   - if defined MINGW_URL set PATH=C:\Python27;%CD%\%MINGW_DIR%\bin;C:\msys64\usr\bin;%PATH%
82   - if defined MINGW_URL copy C:\Python27\python.exe C:\Python27\python2.7.exe
83
84   # Otherwise pull in the MinGW installed on appveyor
85   - if NOT defined MINGW_URL set PATH=C:\msys64\mingw%MSYS_BITS%\bin;C:\msys64\usr\bin;%PATH%
86
87 test_script:
88   - git submodule update --init
89   - set SRC=.
90   - set NO_CCACHE=1
91   - sh src/ci/run.sh
92
93 cache:
94   - "build/i686-pc-windows-gnu/llvm -> src/rustllvm/llvm-auto-clean-trigger"
95   - "build/x86_64-pc-windows-gnu/llvm -> src/rustllvm/llvm-auto-clean-trigger"
96   - "build/i686-pc-windows-msvc/llvm -> src/rustllvm/llvm-auto-clean-trigger"
97   - "build/x86_64-pc-windows-msvc/llvm -> src/rustllvm/llvm-auto-clean-trigger"
98   - "i686-pc-windows-gnu/llvm -> src/rustllvm/llvm-auto-clean-trigger"
99   - "x86_64-pc-windows-gnu/llvm -> src/rustllvm/llvm-auto-clean-trigger"
100   - "i686-pc-windows-msvc/llvm -> src/rustllvm/llvm-auto-clean-trigger"
101   - "x86_64-pc-windows-msvc/llvm -> src/rustllvm/llvm-auto-clean-trigger"
102
103 branches:
104   only:
105     - auto
106
107 # init:
108 #   - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
109 # on_finish:
110 #   - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))