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