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
|
|
|
|
environment:
|
|
|
|
APPVEYOR_SAVE_CACHE_ON_ERROR: true
|
2018-08-26 10:50:38 +02:00
|
|
|
CLCACHE_SERVER: 1
|
|
|
|
PACKAGES: boost-filesystem boost-signals2 boost-interprocess boost-test libevent openssl zeromq berkeleydb secp256k1 leveldb
|
2018-08-27 11:51:06 +02:00
|
|
|
PYTHONIOENCODING: utf-8
|
2018-08-26 10:50:38 +02:00
|
|
|
cache:
|
|
|
|
- C:\tools\vcpkg\installed
|
|
|
|
- C:\Users\appveyor\clcache
|
|
|
|
- build_msvc\cache
|
2018-08-25 18:15:51 +02:00
|
|
|
init:
|
2018-08-26 10:50:38 +02:00
|
|
|
- cmd: set PATH=C:\Python36-x64;C:\Python36-x64\Scripts;%PATH%
|
|
|
|
install:
|
|
|
|
- cmd: pip install git+https://github.com/frerich/clcache.git
|
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
|
2018-08-26 10:50:38 +02:00
|
|
|
- ps: $packages = $env:PACKAGES -Split ' '
|
|
|
|
- ps: for ($i=0; $i -lt $packages.length; $i++) {
|
|
|
|
$env:ALL_PACKAGES += $packages[$i] + ":" + $env:PLATFORM + "-windows-static "
|
|
|
|
}
|
|
|
|
- cmd: git -C C:\Tools\vcpkg pull # This is a temporary fix, can be removed after appveyor update its image to include Microsoft/vcpkg#4046
|
|
|
|
- cmd: vcpkg install %ALL_PACKAGES%
|
|
|
|
- cmd: vcpkg upgrade --no-dry-run
|
|
|
|
- cmd: del /s /q C:\Tools\vcpkg\installed\%PLATFORM%-windows-static\debug # Remove unused debug library
|
2018-08-14 05:41:16 +02:00
|
|
|
before_build:
|
2018-08-26 10:50:38 +02:00
|
|
|
- cmd: if not exist build_msvc\cache\ (del build_msvc\cache & mkdir build_msvc\cache)
|
|
|
|
- cmd: if not exist build_msvc\%PLATFORM%\%CONFIGURATION%\ (mkdir build_msvc\%PLATFORM%\%CONFIGURATION%)
|
|
|
|
- cmd: if exist build_msvc\cache\*.iobj (move build_msvc\cache\* build_msvc\%PLATFORM%\%CONFIGURATION%\)
|
|
|
|
- cmd: clcache -M 2147483648
|
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
|
|
|
|
- ps: for ($i = 0; $i -lt $files.length; $i++) {
|
|
|
|
(Get-Content $files[$i]).Replace("</RuntimeLibrary>", "</RuntimeLibrary><DebugInformationFormat>None</DebugInformationFormat>").Replace("NDEBUG;", "") | Set-Content $files[$i]
|
|
|
|
}
|
|
|
|
- ps: Start-Process clcache-server
|
|
|
|
build_script:
|
|
|
|
- cmd: msbuild /p:TrackFileAccess=false /p:CLToolExe=clcache.exe build_msvc\bitcoin.sln /m /v:q /nowarn:C4244;C4267;C4715 /nologo
|
|
|
|
after_build:
|
|
|
|
- cmd: move build_msvc\%PLATFORM%\%CONFIGURATION%\*.iobj build_msvc\cache\
|
|
|
|
- cmd: move build_msvc\%PLATFORM%\%CONFIGURATION%\*.ipdb build_msvc\cache\
|
|
|
|
- cmd: del C:\Users\appveyor\clcache\stats.txt
|
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")))
|
|
|
|
- ps: ${conf_ini} = $conf_ini.Replace("@abs_top_srcdir@", ${env:APPVEYOR_BUILD_FOLDER}).Replace("@abs_top_builddir@", ${env:APPVEYOR_BUILD_FOLDER}).Replace("@EXEEXT@", ".exe")
|
2018-10-03 11:36:54 +02:00
|
|
|
- ps: ${conf_ini} = $conf_ini.Replace("@ENABLE_WALLET_TRUE@", "").Replace("@BUILD_BITCOIN_CLI_TRUE@", "").Replace("@BUILD_BITCOIND_TRUE@", "").Replace("@ENABLE_ZMQ_TRUE@", "")
|
2018-08-27 11:51:06 +02:00
|
|
|
- ps: ${utf8} = New-Object System.Text.UTF8Encoding ${false}
|
|
|
|
- ps: '[IO.File]::WriteAllLines([IO.Path]::Combine(${env:APPVEYOR_BUILD_FOLDER}, "test", "config.ini"), $conf_ini, ${utf8})'
|
|
|
|
- ps: move "build_msvc\${env:PLATFORM}\${env:CONFIGURATION}\*.exe" src
|
2018-08-14 05:41:16 +02:00
|
|
|
test_script:
|
2018-08-27 11:51:06 +02:00
|
|
|
- cmd: src\test_bitcoin.exe
|
|
|
|
- ps: src\bench_bitcoin.exe -evals=1 -scaling=0
|
|
|
|
- ps: python test\util\bitcoin-util-test.py
|
|
|
|
- cmd: python test\util\rpcauth-test.py
|
2018-09-25 04:51:46 +02:00
|
|
|
- cmd: python test\functional\test_runner.py --force --quiet --combinedlogslen=4000 --exclude wallet_multiwallet
|
2018-08-14 05:41:16 +02:00
|
|
|
deploy: off
|