Use Appveyor for CI on Windows

This commit is contained in:
Mathijs van de Nes 2015-07-10 16:49:18 +02:00
parent 6b0dec58fa
commit effa440906
2 changed files with 23 additions and 0 deletions

View file

@ -2,6 +2,7 @@ zip-rs
======
[![Build Status](https://travis-ci.org/mvdnes/zip-rs.svg?branch=master)](https://travis-ci.org/mvdnes/zip-rs)
[![Build status](https://ci.appveyor.com/api/projects/status/gsnpqcodg19iu253/branch/master?svg=true)](https://ci.appveyor.com/project/mvdnes/zip-rs/branch/master)
[![Crates.io version](https://img.shields.io/crates/v/zip.svg)](https://crates.io/crates/zip)
[Documentation](http://mvdnes.github.io/rust-docs/zip-rs/zip/index.html)

22
appveyor.yml Normal file
View file

@ -0,0 +1,22 @@
environment:
matrix:
- RUST_INSTALL_TRIPLE: i686-pc-windows-gnu
RUST_CHANNEL: stable
- RUST_INSTALL_TRIPLE: x86_64-pc-windows-gnu
RUST_CHANNEL: stable
install:
- ps: Start-FileDownload "http://static.rust-lang.org/dist/channel-rust-${env:RUST_CHANNEL}"
- ps: $env:RUST_INSTALLER = Select-String "${env:RUST_INSTALL_TRIPLE}.*exe" "channel-rust-${env:RUST_CHANNEL}" | select -exp line
- ps: Start-FileDownload "http://static.rust-lang.org/dist/${env:RUST_INSTALLER}"
- '%RUST_INSTALLER% /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust"'
- call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64
- SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin
- SET PATH=%PATH%;C:\MinGW\bin
- rustc --version
- cargo --version
build: false
test_script:
- cargo test