2019-08-23 08:36:56 +08:00
|
|
|
version: 0.3.2.{build}
|
2017-04-04 20:42:30 +08:00
|
|
|
|
|
|
|
environment:
|
|
|
|
matrix:
|
2019-08-31 22:13:02 +08:00
|
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
|
|
|
|
CMAKE_GENERATOR: Visual Studio 16 2019
|
|
|
|
TOOLSET: 142
|
2017-07-06 02:40:18 +08:00
|
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
2019-08-31 22:13:02 +08:00
|
|
|
CMAKE_GENERATOR: Visual Studio 15 2017
|
|
|
|
TOOLSET: 141
|
2018-09-30 17:10:43 +08:00
|
|
|
# - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
2019-08-31 22:13:02 +08:00
|
|
|
# TOOLSET: 140
|
2018-09-30 17:10:43 +08:00
|
|
|
# - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
|
2019-08-31 22:13:02 +08:00
|
|
|
# TOOLSET: 120
|
2017-03-29 06:11:33 +08:00
|
|
|
|
2017-07-22 03:51:56 +08:00
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- coverity_scan
|
|
|
|
|
2017-03-29 06:11:33 +08:00
|
|
|
configuration:
|
2017-07-06 02:40:18 +08:00
|
|
|
- Debug
|
|
|
|
- Release
|
|
|
|
|
|
|
|
platform:
|
2019-08-31 22:13:02 +08:00
|
|
|
- Win32
|
2018-09-14 19:10:36 +08:00
|
|
|
- x64
|
2017-03-29 06:11:33 +08:00
|
|
|
|
2019-08-31 22:13:02 +08:00
|
|
|
before_build:
|
|
|
|
- git submodule sync
|
|
|
|
- git fetch --tags --prune
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- git submodule foreach --recursive git fetch --tags --prune
|
|
|
|
- cmake --version
|
2017-03-29 06:11:33 +08:00
|
|
|
|
2019-08-31 22:13:02 +08:00
|
|
|
build_script:
|
2017-03-30 23:54:57 +08:00
|
|
|
- ps: |
|
2019-08-31 22:13:02 +08:00
|
|
|
Write-Output "*******************************************************************************"
|
|
|
|
Write-Output "Configuration: $env:CONFIGURATION"
|
|
|
|
Write-Output "Platform: $env:PLATFORM"
|
|
|
|
Write-Output "Toolchain: $env:CMAKE_GENERATOR v$env:TOOLSET"
|
|
|
|
Write-Output "*******************************************************************************"
|
|
|
|
|
|
|
|
md _build -Force | Out-Null
|
|
|
|
cd _build
|
|
|
|
|
|
|
|
$generator = $env:CMAKE_GENERATOR
|
|
|
|
if ($env:TOOLSET -lt 142) {
|
|
|
|
if ($env:PLATFORM -eq "x64") {
|
|
|
|
$generator = "$generator Win64"
|
|
|
|
}
|
|
|
|
& cmake -G "$generator" -DCMAKE_CONFIGURATION_TYPES="Debug;Release" ..
|
2017-07-06 02:40:18 +08:00
|
|
|
} else {
|
2019-08-31 22:13:02 +08:00
|
|
|
& cmake -G "$generator" -A $env:PLATFORM -DCMAKE_CONFIGURATION_TYPES="Debug;Release" ..
|
2017-07-06 02:40:18 +08:00
|
|
|
}
|
2019-08-31 22:13:02 +08:00
|
|
|
if ($LastExitCode -ne 0) {
|
|
|
|
throw "Exec: $ErrorMessage"
|
|
|
|
}
|
|
|
|
Write-Output "*******************************************************************************"
|
|
|
|
|
|
|
|
& cmake --build . --config $env:CONFIGURATION
|
|
|
|
if ($LastExitCode -ne 0) {
|
|
|
|
throw "Exec: $ErrorMessage"
|
|
|
|
}
|
|
|
|
Write-Output "*******************************************************************************"
|
2017-07-06 02:40:18 +08:00
|
|
|
|
2019-08-31 22:13:02 +08:00
|
|
|
test_script:
|
|
|
|
- ps: |
|
|
|
|
if (($env:PLATFORM -ne "ARM") -and ($env:PLATFORM -ne "ARM64")) {
|
2019-09-01 21:53:11 +08:00
|
|
|
& ./$env:CONFIGURATION/mdbx_test.exe --pathname=test.db --dont-cleanup-after basic | Tee-Object -file test.log | Select-Object -last 42
|
2019-08-31 22:13:02 +08:00
|
|
|
if ($LastExitCode -ne 0) {
|
|
|
|
throw "Exec: $ErrorMessage"
|
|
|
|
} else {
|
2019-09-01 21:53:11 +08:00
|
|
|
& ./$env:CONFIGURATION/mdbx_chk.exe -nvv test.db | Tee-Object -file chk.log | Select-Object -last 42
|
2019-08-31 22:13:02 +08:00
|
|
|
}
|
2017-04-11 04:34:59 +08:00
|
|
|
}
|
2017-04-25 00:03:38 +08:00
|
|
|
|
2017-04-25 23:30:31 +08:00
|
|
|
on_failure:
|
2019-09-04 00:32:27 +08:00
|
|
|
- ps: Push-AppveyorArtifact _build\test.log
|
|
|
|
- ps: Push-AppveyorArtifact _build\test.db
|
|
|
|
- ps: Push-AppveyorArtifact _build\chk.log
|