X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=appveyor.yml;h=c81869b58dbc6b7bcf626c42d3d7bab0c598ba70;hp=1ed692082be78d8852a47821bccaa58b0a89b7fd;hb=d44701be4b96164d716e5fcf1a811cb6fd5f3b5e;hpb=5ea327d9242db82a60c610cdd3d5f1d9bb0b38a5 diff --git a/appveyor.yml b/appveyor.yml index 1ed69208..c81869b5 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -13,10 +13,11 @@ os: Visual Studio 2015 platform: - x86 - x64 - - Any CPU # build Configuration, i.e. Debug, Release, etc. -configuration: Debug +configuration: + - Debug + - Release matrix: # The build fail immediately once one of the job fails @@ -50,16 +51,19 @@ before_build: $b = git log HEAD | sls "\b[Bb]ench[ :]+[0-9]{7}" | select -first 1 $bench = $b -match '\D+(\d+)' | % { $matches[1] } Write-Host "Reference bench:" $bench + $g = "Visual Studio 14 2015" + If (${env:PLATFORM} -eq 'x64') { $g = $g + ' Win64' } + cmake -G "${g}" . + Write-Host "Generated files for: " $g build_script: - - cmake -G "Visual Studio 14 2015 Win64" . - - cmake --build . + - cmake --build . --config %CONFIGURATION% -- /verbosity:minimal before_test: - - cd src/Debug + - cd src/%CONFIGURATION% + - stockfish bench 2> out.txt >NUL - ps: | # Verify bench number - ./stockfish bench 2> out.txt 1> null $s = (gc "./out.txt" | out-string) $r = ($s -match 'Nodes searched \D+(\d+)' | % { $matches[1] }) Write-Host "Engine bench:" $r