From 06fb69dc5a091e85c53b57b8f9b56c88cdc346b8 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Fri, 27 Jan 2017 13:10:24 +0530 Subject: [PATCH 1/1] Add AppVeyor config (Windows CI) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Hopefully it’ll run it as admin? --- appveyor.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..63d4885 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,42 @@ +environment: + matrix: + - TARGET: i686-pc-windows-gnu + RUST_VERSION: stable + - TARGET: x86_64-pc-windows-gnu + RUST_VERSION: stable + + - TARGET: i686-pc-windows-msvc + RUST_VERSION: stable + - TARGET: x86_64-pc-windows-msvc + RUST_VERSION: stable + + # And for good measure, a nightly build (I think one’ll do) + - TARGET: x86_64-pc-windows-msvc + RUST_VERSION: nightly + +install: + - 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' + } + - curl -sSf -o rustup-init.exe https://win.rustup.rs/ + - rustup-init.exe -y --default-host %TARGET% --default-toolchain %RUST_VERSION% + - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin + - rustc -Vv + - cargo -V + +test_script: + - cargo test --target %TARGET% + - cargo test --target %TARGET% --release + +cache: + - C:\Users\appveyor\.cargo\registry + - target + +notifications: + - provider: Email + on_build_success: false + +build: false -- 2.46.2