From: Chris Morgan Date: Fri, 27 Jan 2017 07:40:24 +0000 (+0530) Subject: Add AppVeyor config (Windows CI) X-Git-Url: https://git.chrismorgan.info/symlink/commitdiff_plain/06fb69dc5a091e85c53b57b8f9b56c88cdc346b8 Add AppVeyor config (Windows CI) Hopefully it’ll run it as admin? --- 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