summaryrefslogtreecommitdiffstats
path: root/third_party/rust/yaml-rust/appveyor.yml
blob: 5b3ee4c1c3a03c0b1c0700ad98e4bb67f3161fc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
clone_depth: 1

branches:
  only:
    - master

environment:
  LLVM_VERSION: 9.0.1
  PLATFORM: x64
  matrix:
    - channel: stable
      target: i686-pc-windows-msvc
      type: msvc
    - channel: stable
      target: x86_64-pc-windows-msvc
      type: msvc
    - channel: stable
      target: i686-pc-windows-gnu
      type: gnu
    - channel: stable
      target: x86_64-pc-windows-gnu
      type: gnu
    - channel: nightly
      target: i686-pc-windows-msvc
      type: msvc
    - channel: nightly
      target: x86_64-pc-windows-msvc
      type: msvc
    - channel: nightly
      target: i686-pc-windows-gnu
      type: gnu
    - channel: nightly
      target: x86_64-pc-windows-gnu
      type: gnu

install:
    - if %PLATFORM% == x86 (set RUST_PLATFORM=i686&set MINGW_BITS=32) else (set RUST_PLATFORM=x86_64&set MINGW_BITS=64)
    - ps: >-
        If ($env:target -eq 'x86_64-pc-windows-gnu') {
            $env:PATH += ';C:\msys64\mingw64\bin'
        } ElseIf ($env:target -eq 'i686-pc-windows-gnu') {
            $env:PATH += ';C:\msys64\mingw32\bin'
        }
    - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
    - rustup-init -yv --default-toolchain %channel% --default-host %target%
    - set PATH=%PATH%;%USERPROFILE%\.cargo\bin
    - rustc -vV
    - cargo -vV
    # Install LLVM for GNU
    - if %type%==gnu set PATH=C:\msys64\mingw%MINGW_BITS%\bin;C:\msys64\usr\bin;%PATH%
    - if %type%==gnu set "MINGW_URL=http://repo.msys2.org/mingw/%RUST_PLATFORM%/mingw-w64-%RUST_PLATFORM%"
    - if %type%==gnu set "URL_VER=%LLVM_VERSION%-1-any.pkg.tar.xz"
    - if %type%==gnu bash -lc "pacman -U --noconfirm $MINGW_URL-clang-$URL_VER $MINGW_URL-llvm-$URL_VER"
    - if %type%==gnu bash -lc "clang --version"
    # Use preinstalled LLVM for MSVC
    - if %type%==msvc set PATH=%PATH%;C:\Program Files\LLVM\bin
    - if %type%==msvc where clang
    - if %type%==msvc clang --version

build_script:
    - cargo build -vv
test_script:
    - cargo test -vv
deploy: off