Update AppVeyor
This commit is contained in:
parent
1bb21bc4ea
commit
d038b75bb7
1 changed files with 66 additions and 10 deletions
|
@ -1,13 +1,69 @@
|
||||||
|
clone_depth: 1
|
||||||
|
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
|
||||||
|
environment:
|
||||||
|
LLVM_VERSION: 9.0.1
|
||||||
|
PLATFORM: x64
|
||||||
|
matrix:
|
||||||
|
- channel: stable
|
||||||
|
target: i686-pc-windows-msvc
|
||||||
|
- channel: stable
|
||||||
|
target: x86_64-pc-windows-msvc
|
||||||
|
- channel: stable
|
||||||
|
target: i686-pc-windows-gnu
|
||||||
|
- channel: stable
|
||||||
|
target: x86_64-pc-windows-gnu
|
||||||
|
- channel: beta
|
||||||
|
target: i686-pc-windows-msvc
|
||||||
|
- channel: beta
|
||||||
|
target: x86_64-pc-windows-msvc
|
||||||
|
- channel: nightly
|
||||||
|
target: i686-pc-windows-msvc
|
||||||
|
type: msvc
|
||||||
|
- channel: nightly
|
||||||
|
target: x86_64-pc-windows-msvc
|
||||||
|
type: msvc
|
||||||
|
- channel: beta
|
||||||
|
target: i686-pc-windows-gnu
|
||||||
|
- channel: beta
|
||||||
|
target: x86_64-pc-windows-gnu
|
||||||
|
- channel: nightly
|
||||||
|
target: i686-pc-windows-gnu
|
||||||
|
type: gnu
|
||||||
|
- channel: nightly
|
||||||
|
target: x86_64-pc-windows-gnu
|
||||||
|
type: gnu
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- ps: Start-FileDownload 'https://static.rust-lang.org/dist/rust-1.28.0-i686-pc-windows-gnu.exe'
|
- if %PLATFORM% == x86 (set RUST_PLATFORM=i686&set MINGW_BITS=32) else (set RUST_PLATFORM=x86_64&set MINGW_BITS=64)
|
||||||
- rust-1.28.0-i686-pc-windows-gnu.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust"
|
- ps: >-
|
||||||
- SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin
|
If ($env:target -eq 'x86_64-pc-windows-gnu') {
|
||||||
- SET PATH=%PATH%;C:\MinGW\bin
|
$env:PATH += ';C:\msys64\mingw64\bin'
|
||||||
- rustc -V
|
} ElseIf ($env:target -eq 'i686-pc-windows-gnu') {
|
||||||
- cargo -V
|
$env:PATH += ';C:\msys64\mingw32\bin'
|
||||||
- git submodule update --init --recursive
|
}
|
||||||
|
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
|
||||||
build: false
|
- 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:
|
test_script:
|
||||||
- cargo test --verbose
|
- cargo test -vv
|
||||||
|
deploy: off
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue