2018-06-21 22:54:59 +08:00
|
|
|
version: 0.2.0.{build}
|
2017-04-04 20:42:30 +08:00
|
|
|
|
|
|
|
environment:
|
|
|
|
matrix:
|
2017-07-06 02:40:18 +08:00
|
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
|
|
TOOLSET: v141
|
|
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
|
|
|
TOOLSET: v140
|
|
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
|
|
|
|
TOOLSET: v120
|
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:
|
|
|
|
- x86
|
2018-09-14 02:19:30 +08:00
|
|
|
#- x64
|
2017-07-06 02:40:18 +08:00
|
|
|
#- ARM
|
2017-03-29 06:11:33 +08:00
|
|
|
|
2017-07-06 02:40:18 +08:00
|
|
|
build_script:
|
|
|
|
- ps: >
|
|
|
|
msbuild "C:\projects\libmdbx\mdbx.sln" /verbosity:minimal
|
|
|
|
/logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
|
|
|
/property:PlatformToolset=$env:TOOLSET
|
|
|
|
/property:Configuration=$env:CONFIGURATION
|
|
|
|
/property:Platform=$env:PLATFORM
|
2017-03-29 06:11:33 +08:00
|
|
|
|
2017-03-30 23:54:57 +08:00
|
|
|
test_script:
|
|
|
|
- ps: |
|
2017-04-11 04:34:59 +08:00
|
|
|
if (($env:PLATFORM -eq "x86") -and (Test-Path "C:\projects\libmdbx\Win32\$env:CONFIGURATION\test.exe" -PathType Leaf)) {
|
2017-04-25 00:03:38 +08:00
|
|
|
$test = "C:\projects\libmdbx\Win32\$env:CONFIGURATION\test.exe"
|
2017-07-19 19:13:18 +08:00
|
|
|
$mdbx_chk = "C:\projects\libmdbx\Win32\$env:CONFIGURATION\mdbx_chk.exe"
|
2017-07-06 02:40:18 +08:00
|
|
|
} elseif (($env:PLATFORM -ne "ARM") -and ($env:PLATFORM -ne "ARM64")) {
|
2017-04-25 00:03:38 +08:00
|
|
|
$test = "C:\projects\libmdbx\$env:PLATFORM\$env:CONFIGURATION\test.exe"
|
2017-07-19 19:13:18 +08:00
|
|
|
$mdbx_chk = "C:\projects\libmdbx\$env:PLATFORM\$env:CONFIGURATION\mdbx_chk.exe"
|
2017-07-06 02:40:18 +08:00
|
|
|
} else {
|
|
|
|
$test = ""
|
2017-07-19 19:13:18 +08:00
|
|
|
$mdbx_chk = ""
|
2017-07-06 02:40:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
if ($test -ne "") {
|
|
|
|
& "$test" --pathname=tmp.db --dont-cleanup-after basic | Tee-Object -file test.log | Select-Object -last 42
|
2017-07-19 19:13:18 +08:00
|
|
|
& "$mdbx_chk" -nvv tmp.db | Tee-Object -file chk.log | Select-Object -last 42
|
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:
|
2017-07-19 19:13:18 +08:00
|
|
|
- ps: Push-AppveyorArtifact test.log chk.log
|