From e75a66c487798792754beb7d1a3dad1f1433db30 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 11 Apr 2017 11:12:20 -0700 Subject: [PATCH] Set up AppVeyor --- appveyor.yml | 17 +++++++++++++++++ travis.sh | 5 +++++ 2 files changed, 22 insertions(+) create mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..f720b04 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,17 @@ +environment: + matrix: + - APPVEYOR_RUST_CHANNEL: stable + - APPVEYOR_RUST_CHANNEL: nightly + +install: + # Install rust, x86_64-pc-windows-msvc host + - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe + - rustup-init.exe -y --default-host x86_64-pc-windows-msvc --default-toolchain %APPVEYOR_RUST_CHANNEL% + - set PATH=C:\msys64\usr\bin;%PATH%;C:\Users\appveyor\.cargo\bin + - rustc -vV + - cargo -vV + +build: false + +test_script: + - sh -c 'PATH=`rustc --print sysroot`/bin:$PATH ./travis.sh' diff --git a/travis.sh b/travis.sh index feb0dbb..84b56ca 100755 --- a/travis.sh +++ b/travis.sh @@ -10,6 +10,11 @@ channel() { pwd (set -x; cargo "$@") fi + elif [ -n "${APPVEYOR}" ]; then + if [ "${APPVEYOR_RUST_CHANNEL}" = "${CHANNEL}" ]; then + pwd + (set -x; cargo "$@") + fi else pwd (set -x; cargo "+${CHANNEL}" "$@")