From 71cfb4a1b0919c9a41634e5c175173d33eacd9aa Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Mon, 1 Aug 2016 11:12:34 +0200 Subject: [PATCH] Enable AppVeyor. --- appveyor.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 000000000..e1aa75700 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,28 @@ +version: 1.0.{build} + +environment: + PATH: 'C:\msys64\mingw64\bin;C:\msys64\usr\bin\;%PATH%' + MSYSTEM: 'MSYS' + MSYS: 'winsymlinks=lnk' + TARGET: 'nightly-x86_64-pc-windows-gnu' + +platform: + - x64 + +install: + - bash -lc "echo $MSYSTEM; pacman --needed --noconfirm -Sy pacman-mirrors" + - bash -lc "pacman --noconfirm -Sy" + - bash -lc "pacman -Sy --needed --noconfirm git mingw-w64-x86_64-toolchain tar make python2-setuptools" + - bash -lc "easy_install-2.7 pip virtualenv" + - bash -lc "mv /mingw64/bin/python2.exe /mingw64/bin/python2-mingw64.exe" + - bash -lc "mv /mingw64/bin/python2.7.exe /mingw64/bin/python2.7-mingw64.exe" + - ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-${env:TARGET}.exe" -FileName "rust-install.exe" + - ps: .\rust-install.exe /VERYSILENT /NORESTART /DIR="C:\rust" | Out-Null + - ps: $env:PATH="$env:PATH;C:\rust\bin" + - rustc -vV + - cargo -vV +build_script: + - cmd: >- + set MSYSTEM=MINGW64 + + bash -lc "cd $APPVEYOR_BUILD_FOLDER; cargo build && cargo test"