openssl/appveyor.yml
Richard Levitte 14c4201958 Appveyor: test install as well, via a fake deploy_script
Reviewed-by: Matt Caswell <matt@openssl.org>
2016-06-21 14:52:34 +02:00

59 lines
1.2 KiB
YAML

platform:
- x86
- x64
environment:
matrix:
- VSVER: 14
configuration:
- plain
- shared
before_build:
- ps: >-
If ($env:Platform -Match "x86") {
$env:VCVARS_PLATFORM="x86"
$env:TARGET="VC-WIN32"
} Else {
$env:VCVARS_PLATFORM="amd64"
$env:TARGET="VC-WIN64A"
}
- ps: >-
If ($env:Configuration -Match "shared") {
$env:SHARED=""
} Else {
$env:SHARED="no-shared"
}
- ps: $env:VSCOMNTOOLS=(Get-Content ("env:VS" + "$env:VSVER" + "0COMNTOOLS"))
- call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat" %VCVARS_PLATFORM%
- mkdir _build
- cd _build
- perl ..\Configure %TARGET% no-asm %SHARED%
- cd ..
build_script:
- cd _build
- nmake
- cd ..
test_script:
- cd _build
- nmake test
- cd ..
# Fake deploy script to test installation
deploy_script:
- mkdir _install
- cd _build
- nmake install install_docs DESTDIR=..\_install
- cd ..
notifications:
- provider: Email
to:
- openssl-commits@openssl.org
on_build_success: false
on_build_failure: true
on_build_status_changed: true