2015-10-28 20:11:37 +00:00
|
|
|
platform:
|
|
|
|
- x64
|
2017-03-01 13:33:34 +00:00
|
|
|
- x86
|
2015-10-28 20:11:37 +00:00
|
|
|
|
|
|
|
environment:
|
2017-03-01 13:33:34 +00:00
|
|
|
fast_finish: true
|
2015-10-28 20:11:37 +00:00
|
|
|
matrix:
|
|
|
|
- VSVER: 14
|
|
|
|
|
|
|
|
configuration:
|
|
|
|
- shared
|
2017-03-01 13:33:34 +00:00
|
|
|
- plain
|
2015-10-28 20:11:37 +00:00
|
|
|
|
|
|
|
before_build:
|
|
|
|
- ps: >-
|
|
|
|
If ($env:Platform -Match "x86") {
|
|
|
|
$env:VCVARS_PLATFORM="x86"
|
2017-02-19 21:11:29 +00:00
|
|
|
$env:TARGET="VC-WIN32 no-asm"
|
2015-10-28 20:11:37 +00:00
|
|
|
} Else {
|
|
|
|
$env:VCVARS_PLATFORM="amd64"
|
2017-02-19 21:11:29 +00:00
|
|
|
$env:TARGET="VC-WIN64A-masm"
|
2015-10-28 20:11:37 +00:00
|
|
|
}
|
2016-03-16 13:58:17 +00:00
|
|
|
- ps: >-
|
|
|
|
If ($env:Configuration -Match "shared") {
|
|
|
|
$env:SHARED=""
|
2016-04-14 13:28:13 +00:00
|
|
|
} Else {
|
|
|
|
$env:SHARED="no-shared"
|
2016-03-16 13:58:17 +00:00
|
|
|
}
|
2015-10-28 20:11:37 +00:00
|
|
|
- ps: $env:VSCOMNTOOLS=(Get-Content ("env:VS" + "$env:VSVER" + "0COMNTOOLS"))
|
|
|
|
- call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat" %VCVARS_PLATFORM%
|
2016-06-02 15:37:26 +00:00
|
|
|
- mkdir _build
|
|
|
|
- cd _build
|
2017-02-19 21:11:29 +00:00
|
|
|
- perl ..\Configure %TARGET% %SHARED%
|
2016-06-02 15:37:26 +00:00
|
|
|
- cd ..
|
2017-03-01 13:33:34 +00:00
|
|
|
- ps: >-
|
|
|
|
if (-not $env:APPVEYOR_PULL_REQUEST_NUMBER -or (&git log -2 | Select-String "\[extended tests\]") ) {
|
|
|
|
$env:EXTENDED_TESTS="yes"
|
|
|
|
}
|
2015-10-28 20:11:37 +00:00
|
|
|
|
|
|
|
build_script:
|
2017-03-01 13:33:34 +00:00
|
|
|
- ps: >-
|
|
|
|
If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) {
|
|
|
|
cd _build
|
|
|
|
&nmake
|
|
|
|
cd ..
|
|
|
|
}
|
2015-10-28 20:11:37 +00:00
|
|
|
|
|
|
|
test_script:
|
2017-03-01 13:33:34 +00:00
|
|
|
- ps: >-
|
|
|
|
If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) {
|
|
|
|
cd _build
|
|
|
|
if ($env:EXTENDED_TESTS) {
|
|
|
|
&nmake test V=1
|
|
|
|
mkdir ..\_install
|
|
|
|
&nmake install install_docs DESTDIR=..\_install
|
|
|
|
} Else {
|
|
|
|
&nmake test V=1 TESTS=-test_fuzz
|
|
|
|
}
|
|
|
|
cd ..
|
|
|
|
}
|
2015-10-28 20:11:37 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
- provider: Email
|
|
|
|
to:
|
|
|
|
- openssl-commits@openssl.org
|
|
|
|
on_build_success: false
|
|
|
|
on_build_failure: true
|
|
|
|
on_build_status_changed: true
|