46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
environment:
|
|
SSL_CERT_FILE: "C:\\OpenSSL\\cacert.pem"
|
|
matrix:
|
|
# 1.1.0, 64/32 bit
|
|
- TARGET: i686-pc-windows-gnu
|
|
BITS: 32
|
|
MSYS2: 1
|
|
OPENSSL_VERSION: 1_1_0b
|
|
- TARGET: x86_64-pc-windows-msvc
|
|
BITS: 64
|
|
OPENSSL_VERSION: 1_1_0b
|
|
OPENSSL_DIR: C:\OpenSSL
|
|
|
|
# 1.0.2, 64/32 bit
|
|
- TARGET: x86_64-pc-windows-gnu
|
|
BITS: 64
|
|
MSYS2: 1
|
|
OPENSSL_VERSION: 1_0_2j
|
|
- TARGET: i686-pc-windows-msvc
|
|
BITS: 32
|
|
OPENSSL_VERSION: 1_0_2j
|
|
OPENSSL_DIR: C:\OpenSSL
|
|
install:
|
|
# install OpenSSL
|
|
- 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"
|
|
- ps: Start-FileDownload "https://curl.haxx.se/ca/cacert.pem" -FileName "C:\OpenSSL\cacert.pem"
|
|
|
|
# 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%
|
|
- rustc -V
|
|
- cargo -V
|
|
|
|
build: false
|
|
|
|
test_script:
|
|
- cargo run --manifest-path systest/Cargo.toml --target %TARGET%
|
|
- cargo test --manifest-path openssl/Cargo.toml --target %TARGET%
|
|
|
|
cache:
|
|
- target
|
|
- C:\Users\appveyor\.cargo\registry
|