2018-08-17 06:57:28 +02:00
|
|
|
version: '{branch}.{build}'
|
2018-08-14 05:41:16 +02:00
|
|
|
skip_tags: true
|
|
|
|
image: Visual Studio 2017
|
|
|
|
configuration: Release
|
|
|
|
platform: x64
|
2018-11-06 01:40:40 +01:00
|
|
|
clone_depth: 5
|
2018-08-14 05:41:16 +02:00
|
|
|
environment:
|
|
|
|
APPVEYOR_SAVE_CACHE_ON_ERROR: true
|
2018-08-26 10:50:38 +02:00
|
|
|
CLCACHE_SERVER: 1
|
2018-12-01 10:59:14 +01:00
|
|
|
PACKAGES: berkeleydb boost-filesystem boost-signals2 boost-test libevent openssl rapidcheck zeromq
|
2018-11-06 01:40:40 +01:00
|
|
|
PATH: 'C:\Python37-x64;C:\Python37-x64\Scripts;%PATH%'
|
|
|
|
PYTHONUTF8: 1
|
2018-08-26 10:50:38 +02:00
|
|
|
cache:
|
2019-02-28 19:44:01 +01:00
|
|
|
- C:\tools\vcpkg\installed -> .appveyor.yml
|
|
|
|
- C:\Users\appveyor\clcache -> .appveyor.yml, build_msvc\**, **\Makefile.am, **\*.vcxproj.in
|
2018-08-26 10:50:38 +02:00
|
|
|
install:
|
2018-11-06 01:40:40 +01:00
|
|
|
- cmd: pip install --quiet git+https://github.com/frerich/clcache.git@v4.2.0
|
2018-08-27 11:51:06 +02:00
|
|
|
# Disable zmq test for now since python zmq library on Windows would cause Access violation sometimes.
|
|
|
|
# - cmd: pip install zmq
|
2019-02-28 19:44:01 +01:00
|
|
|
- cmd: echo set(VCPKG_BUILD_TYPE release) >> C:\tools\vcpkg\triplets\%PLATFORM%-windows-static.cmake
|
2019-02-11 22:42:44 +01:00
|
|
|
- cmd: vcpkg remove --outdated --recurse
|
2018-11-06 01:40:40 +01:00
|
|
|
- cmd: vcpkg install --triplet %PLATFORM%-windows-static %PACKAGES% > NUL
|
2018-08-14 05:41:16 +02:00
|
|
|
before_build:
|
2018-09-17 15:36:21 +02:00
|
|
|
- ps: clcache -M 536870912
|
2018-08-25 18:15:51 +02:00
|
|
|
- cmd: python build_msvc\msvc-autogen.py
|
2018-08-26 10:50:38 +02:00
|
|
|
- ps: $files = (Get-ChildItem -Recurse | where {$_.extension -eq ".vcxproj"}).FullName
|
2018-09-17 15:36:21 +02:00
|
|
|
- ps: for (${i} = 0; ${i} -lt ${files}.length; ${i}++) {
|
|
|
|
${content} = (Get-Content ${files}[${i}]);
|
|
|
|
${content} = ${content}.Replace("</RuntimeLibrary>", "</RuntimeLibrary><DebugInformationFormat>None</DebugInformationFormat>");
|
|
|
|
${content} = ${content}.Replace("<WholeProgramOptimization>true", "<WholeProgramOptimization>false");
|
|
|
|
Set-Content ${files}[${i}] ${content};
|
2018-08-26 10:50:38 +02:00
|
|
|
}
|
|
|
|
- ps: Start-Process clcache-server
|
2018-09-17 15:36:21 +02:00
|
|
|
- ps: fsutil behavior set disablelastaccess 0 # Enable Access time feature on Windows (for clcache)
|
2018-08-26 10:50:38 +02:00
|
|
|
build_script:
|
2018-09-05 15:08:58 +02:00
|
|
|
- cmd: msbuild /p:TrackFileAccess=false /p:CLToolExe=clcache.exe build_msvc\bitcoin.sln /m /v:q /nologo
|
2018-08-26 10:50:38 +02:00
|
|
|
after_build:
|
2018-11-06 01:40:40 +01:00
|
|
|
- ps: fsutil behavior set disablelastaccess 1 # Disable Access time feature on Windows (better performance)
|
2018-09-17 15:36:21 +02:00
|
|
|
- ps: clcache -z
|
2018-08-27 11:51:06 +02:00
|
|
|
before_test:
|
|
|
|
- ps: ${conf_ini} = (Get-Content([IO.Path]::Combine(${env:APPVEYOR_BUILD_FOLDER}, "test", "config.ini.in")))
|
2019-04-26 19:07:49 +02:00
|
|
|
- ps: ${conf_ini} = ${conf_ini}.Replace("@PACKAGE_NAME@", "Bitcoin Core")
|
2018-09-17 15:36:21 +02:00
|
|
|
- ps: ${conf_ini} = ${conf_ini}.Replace("@abs_top_srcdir@", ${env:APPVEYOR_BUILD_FOLDER})
|
|
|
|
- ps: ${conf_ini} = ${conf_ini}.Replace("@abs_top_builddir@", ${env:APPVEYOR_BUILD_FOLDER})
|
|
|
|
- ps: ${conf_ini} = ${conf_ini}.Replace("@EXEEXT@", ".exe")
|
|
|
|
- ps: ${conf_ini} = ${conf_ini}.Replace("@ENABLE_WALLET_TRUE@", "")
|
|
|
|
- ps: ${conf_ini} = ${conf_ini}.Replace("@BUILD_BITCOIN_CLI_TRUE@", "")
|
|
|
|
- ps: ${conf_ini} = ${conf_ini}.Replace("@BUILD_BITCOIND_TRUE@", "")
|
|
|
|
- ps: ${conf_ini} = ${conf_ini}.Replace("@ENABLE_ZMQ_TRUE@", "")
|
2018-08-27 11:51:06 +02:00
|
|
|
- ps: ${utf8} = New-Object System.Text.UTF8Encoding ${false}
|
2018-09-17 15:36:21 +02:00
|
|
|
- ps: '[IO.File]::WriteAllLines([IO.Path]::Combine(${env:APPVEYOR_BUILD_FOLDER}, "test", "config.ini"), ${conf_ini}, ${utf8})'
|
2018-08-27 11:51:06 +02:00
|
|
|
- ps: move "build_msvc\${env:PLATFORM}\${env:CONFIGURATION}\*.exe" src
|
2018-08-14 05:41:16 +02:00
|
|
|
test_script:
|
2018-11-06 01:40:40 +01:00
|
|
|
- cmd: src\test_bitcoin.exe -k stdout -e stdout 2> NUL
|
|
|
|
- cmd: src\bench_bitcoin.exe -evals=1 -scaling=0 > NUL
|
2018-08-27 11:51:06 +02:00
|
|
|
- ps: python test\util\bitcoin-util-test.py
|
|
|
|
- cmd: python test\util\rpcauth-test.py
|
2019-02-08 01:18:02 +01:00
|
|
|
- cmd: python test\functional\test_runner.py --ci --quiet --combinedlogslen=4000 --failfast
|
2018-08-14 05:41:16 +02:00
|
|
|
deploy: off
|