2015-12-14 16:40:37 +01:00
|
|
|
version: 1.7.0-{branch}.{build}
|
2015-01-19 11:25:09 +01:00
|
|
|
|
2015-12-09 09:26:51 +01:00
|
|
|
cache:
|
|
|
|
- c:\OpenSSL-Win32
|
|
|
|
- c:\OpenSSL-Win64
|
|
|
|
- c:\ProgramData\chocolatey
|
|
|
|
- c:\mysql-5.7.9-win32
|
|
|
|
|
2015-12-09 11:05:46 +01:00
|
|
|
services:
|
|
|
|
- mysql
|
|
|
|
- mongodb
|
2015-12-09 12:15:41 +01:00
|
|
|
- mssql2014
|
2015-12-09 11:05:46 +01:00
|
|
|
|
2015-12-14 16:40:37 +01:00
|
|
|
platform:
|
|
|
|
- Win32
|
|
|
|
- x64
|
|
|
|
|
|
|
|
|
2015-12-09 09:26:51 +01:00
|
|
|
configuration:
|
2015-12-14 16:40:37 +01:00
|
|
|
- release
|
|
|
|
- debug
|
2015-12-09 09:26:51 +01:00
|
|
|
|
2015-01-19 11:25:09 +01:00
|
|
|
install:
|
2015-12-09 09:26:51 +01:00
|
|
|
- systeminfo
|
|
|
|
- c:\cygwin\bin\uname -a
|
|
|
|
- c:\cygwin\bin\cat /proc/cpuinfo
|
|
|
|
- c:\cygwin\bin\cat /proc/meminfo
|
2015-12-09 09:38:29 +01:00
|
|
|
- set
|
2015-01-19 11:25:09 +01:00
|
|
|
- cinst cmake
|
2015-12-09 09:26:51 +01:00
|
|
|
# chocolatey brokes jom, here's workaround
|
|
|
|
# see https://github.com/jcfr/qt-easy-build/commit/6366f4275562bdaf4f686838600f46894579c41e)
|
|
|
|
- ps: |
|
|
|
|
if ($env:builder -eq "cmake")
|
|
|
|
{
|
|
|
|
$env:PATH = $env:ChocolateyInstall + "\bin" + ";" + $env:PATH
|
|
|
|
$env:PATH = $env:ChocolateyInstall + "\lib\jom\content" + ";" + $env:PATH
|
|
|
|
}
|
|
|
|
|
|
|
|
environment:
|
|
|
|
bundling: bundled
|
2015-12-11 10:32:04 +01:00
|
|
|
openssl: 1_0_2e
|
2015-12-09 09:26:51 +01:00
|
|
|
|
|
|
|
matrix:
|
2015-12-14 16:40:37 +01:00
|
|
|
# - builder: cmake
|
|
|
|
# ssl: Win32
|
|
|
|
# vc: amd64_x86
|
|
|
|
# target: x86
|
|
|
|
|
|
|
|
- builder: msbuild
|
|
|
|
linkmode: shared
|
|
|
|
|
|
|
|
|
2015-12-09 09:26:51 +01:00
|
|
|
|
|
|
|
before_build:
|
|
|
|
|
|
|
|
after_build:
|
2015-01-19 11:25:09 +01:00
|
|
|
|
|
|
|
build_script:
|
2015-12-14 17:02:01 +01:00
|
|
|
# - set PATH=C:\ProgramData\chocolatey\bin;%PATH%
|
2015-12-14 16:40:37 +01:00
|
|
|
# - mkdir cmake-build
|
|
|
|
# - cd cmake-build
|
|
|
|
# - cmake .. -G "Visual Studio 12 2013" -DENABLE_DATA_MYSQL=OFF -DENABLE_REDIS=OFF -DENABLE_TESTS=ON
|
|
|
|
# - cmake --build . --config %configuration% -- /nologo /v:minimal
|
|
|
|
- buildwin 120 build %linkmode% %configuration% %platform% samples tests msbuild minimal "C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
2015-12-09 09:26:51 +01:00
|
|
|
|
|
|
|
before_test:
|
2015-12-14 16:40:37 +01:00
|
|
|
- set PATH=%CD%\bin;%PATH%
|
|
|
|
- set EXCLUDE_TESTS=NetSLL_Win,Data/ODBC,Data/MySQL
|
2015-12-09 09:26:51 +01:00
|
|
|
|
|
|
|
after_test:
|
|
|
|
|
|
|
|
test_script:
|
2015-12-14 16:40:37 +01:00
|
|
|
- build\script\runtests2.cmd
|
|
|
|
# - ctest -VV -C %configuration% -E "Data*"
|
2015-12-09 09:26:51 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
on_success:
|
|
|
|
- echo success
|
|
|
|
|
|
|
|
on_failure:
|
|
|
|
- echo failure
|
|
|
|
|
|
|
|
on_finish:
|
|
|
|
- echo finish
|
|
|
|
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
- provider: Email
|
|
|
|
on_build_success: false
|
|
|
|
on_build_failure: false
|
|
|
|
on_build_status_changed: false
|
|
|
|
|
|
|
|
|
|
|
|
- provider: Slack
|
|
|
|
auth_token:
|
|
|
|
secure: xoOlP1UHshqjvh/INwMcNhZ5UHsTVKLGY5maTSjaxDc0fvRwoWIdYvY/CofQEuy2wOIBQK4eLD+tA0xG78ZgqQ==
|
|
|
|
channel: poco
|
|
|
|
on_build_success: false
|
2015-12-13 12:11:35 +01:00
|
|
|
on_build_status_changed: false
|
|
|
|
|
|
|
|
- provider: Slack
|
|
|
|
incoming_webhook: https://hooks.slack.com/services/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
|
|
|
|
|