Merge pull request #176 from MaikKlein/appveyor

Add rustup to appveyor
This commit is contained in:
Maik Klein 2019-01-11 09:30:53 +01:00 committed by GitHub
commit 51ae6fc63b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,24 +1,21 @@
os: Visual Studio 2015
environment: environment:
matrix: matrix:
- TARGET: 1.28.0-x86_64-pc-windows # Stable 64-bit MSVC
COMPILER: msvc - channel: stable
target: x86_64-pc-windows-msvc
install: install:
- if %COMPILER%==gnu choco install -y mingw - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-${env:TARGET}-${env:COMPILER}.exe" -FileName "rust-install.exe" - rustup-init -yv --default-toolchain %channel% --default-host %target%
- ps: .\rust-install.exe /VERYSILENT /NORESTART /DIR="C:\rust" | Out-Null - set PATH=%PATH%;%USERPROFILE%\.cargo\bin
- ps: $env:PATH="$env:PATH;C:\rust\bin;C:\tools\mingw64\bin"
- if %COMPILER%==gnu gcc -v
- rustc -vV - rustc -vV
- cargo -vV - cargo -vV
build_script:
- cargo build --manifest-path ash/Cargo.toml
- cargo build --manifest-path examples/Cargo.toml
branches: # 'cargo test' takes care of building for us, so disable Appveyor's build stage. This prevents
only: # the "directory does not contain a project or solution file" error.
# This is where pull requests from "bors r+" are built. build: off
- staging
# This is where pull requests from "bors try" are built. test_script:
- trying - cargo test --verbose %cargoflags%
# Uncomment this to enable building pull requests.
- master