From de4dc07f9ba8324192fcd9e2503428871e5d9e75 Mon Sep 17 00:00:00 2001 From: "Y. T. Chung" Date: Tue, 25 Oct 2016 23:32:58 +0800 Subject: [PATCH] updated appveyor build --- appveyor.yml | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index b0af5716..dc483829 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -6,21 +6,32 @@ environment: matrix: - TARGET: x86_64-pc-windows-msvc BITS: 64 + OPENSSL_VERSION: 1_1_0b - TARGET: i686-pc-windows-msvc BITS: 32 + OPENSSL_VERSION: 1_1_0b - TARGET: i686-pc-windows-gnu BITS: 32 + OPENSSL_VERSION: 1_1_0b install: - - ps: Start-FileDownload "http://slproweb.com/download/Win${env:BITS}OpenSSL-1_0_2h.exe" - - Win%BITS%OpenSSL-1_0_2h.exe /SILENT /VERYSILENT /SP- /DIR="C:\OpenSSL" - - ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-nightly-${env:TARGET}.exe" - - rust-nightly-%TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust" - - SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin - - SET PATH=%PATH%;C:\MinGW\bin + - ps: Start-FileDownload "http://slproweb.com/download/Win${env:BITS}OpenSSL-${env:OPENSSL_VERSION}.exe" + - Win%BITS%OpenSSL-%OPENSSL_VERSION%.exe /SILENT /VERYSILENT /SP- /DIR="C:\OpenSSL" + + # Install Rust + - curl -sSf -o rustup-init.exe https://win.rustup.rs/ + - rustup-init.exe -y --default-host %TARGET% + - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin + - if defined MSYS2 set PATH=C:\msys64\mingw%BITS%\bin;%PATH% + + # Run tests - rustc -V - cargo -V build: false test_script: - - cargo test -v + - cargo test + +cache: + - target + - C:\Users\appveyor\.cargo\registry