From effa440906b187754c581686c8f3bf792faf7fbc Mon Sep 17 00:00:00 2001 From: Mathijs van de Nes Date: Fri, 10 Jul 2015 16:49:18 +0200 Subject: [PATCH] Use Appveyor for CI on Windows --- README.md | 1 + appveyor.yml | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 appveyor.yml diff --git a/README.md b/README.md index 4940b63a..d0e95f45 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 00000000..f210a167 --- /dev/null +++ b/appveyor.yml @@ -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