branches:
  only:
    - master

os:
  - MinGW
  
install:
  - ps: Start-FileDownload 'https://static.rust-lang.org/dist/rust-nightly-i686-pc-windows-gnu.exe'
  - ps: Start-FileDownload 'http://slproweb.com/download/Win32OpenSSL-1_0_2d.exe'
  - rust-nightly-i686-pc-windows-gnu.exe /VERYSILENT /NORESTART /DIR="C:\Rust"
  - Win32OpenSSL-1_0_2d.exe /VERYSILENT /NORESTART /DIR="C:\OpenSSL-Win32" /SUPPRESSMSGBOXES
  - SET PATH=%PATH%;C:\MinGW\bin
  - SET PATH=%PATH%;C:\Rust\bin
  - SET OPENSSL_INCLUDE_DIR=C:\OpenSSL-Win32\include
  - SET OPENSSL_LIB_DIR=C:\OpenSSL-Win32\bin
  - CP C:\OpenSSL-Win32\bin\ssleay32.dll C:\OpenSSL-Win32\bin\libssl32.dll
  - gcc --version
  - rustc -V
  - cargo -V

build_script:
  - cargo build

test_script:
  - cargo test
branches:
  only:
    - master

os:
  - MinGW

install:
  - ps: Start-FileDownload 'https://static.rust-lang.org/dist/rust-nightly-i686-pc-windows-gnu.exe'
  - ps: Start-FileDownload 'https://slproweb.com/download/Win32OpenSSL-1_0_2e.exe'
  - rust-nightly-i686-pc-windows-gnu.exe /VERYSILENT /NORESTART /DIR="C:\Rust"
  - Win32OpenSSL-1_0_2e.exe /VERYSILENT /NORESTART /DIR="C:\OpenSSL-Win32" /SUPPRESSMSGBOXES
  - SET PATH=%PATH%;C:\MinGW\bin
  - SET PATH=%PATH%;C:\Rust\bin
  - SET OPENSSL_INCLUDE_DIR=C:\OpenSSL-Win32\include
  - SET OPENSSL_LIB_DIR=C:\OpenSSL-Win32\bin
  - CP C:\OpenSSL-Win32\bin\ssleay32.dll C:\OpenSSL-Win32\bin\libssl32.dll
  - gcc --version
  - rustc -V
  - cargo -V

build_script:
  - cargo build

test_script:
  - cargo test

Fix for AppVeyor OpenSSL download
Fix for AppVeyor OpenSSL download
