2015-12-14 17:17:21 +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:\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-12-14 17:17:21 +01:00
|
|
|
# MySQL 32 bit is not available by default on AppVeyor
|
|
|
|
- ps: |
|
2015-12-15 00:25:11 +01:00
|
|
|
if ($env:platform -eq "Win32")
|
2015-12-14 17:17:21 +01:00
|
|
|
{
|
|
|
|
if (Test-Path "c:\mysql-5.7.9-win32") {
|
|
|
|
echo "using mysql-5.7.9-win32 from cache"
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
echo "downloading mysql-5.7.9-win32"
|
|
|
|
Invoke-WebRequest "http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.9-win32.zip" -OutFile mysql-5.7.9-win32.zip
|
|
|
|
echo "installing mysql-5.7.9-win32"
|
|
|
|
7z x -y mysql-5.7.9-win32.zip -oc:\
|
|
|
|
}
|
|
|
|
}
|
2015-12-09 09:26:51 +01:00
|
|
|
|
|
|
|
environment:
|
|
|
|
bundling: bundled
|
|
|
|
|
|
|
|
matrix:
|
2015-12-14 17:17:21 +01:00
|
|
|
- builder: 120
|
2015-12-14 16:40:37 +01:00
|
|
|
linkmode: shared
|
|
|
|
|
2015-12-15 00:25:11 +01:00
|
|
|
- builder: 140
|
|
|
|
linkmode: shared
|
|
|
|
|
|
|
|
# - builder: 120
|
|
|
|
# linkmode: static_md
|
|
|
|
|
|
|
|
# - builder: 120
|
|
|
|
# linkmode: static_mt
|
|
|
|
|
2015-12-14 17:48:54 +01:00
|
|
|
|
|
|
|
|
2015-12-09 09:26:51 +01:00
|
|
|
before_build:
|
2015-12-14 17:17:21 +01:00
|
|
|
- ps: |
|
|
|
|
if ($env:builder -eq "120")
|
|
|
|
{
|
2015-12-14 17:48:54 +01:00
|
|
|
if ($env:platform -eq "Win32")
|
|
|
|
{
|
|
|
|
& "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86
|
2015-12-15 00:02:01 +01:00
|
|
|
$env:suffix = ""
|
2015-12-14 17:48:54 +01:00
|
|
|
}
|
|
|
|
if ($env:platform -eq "x64")
|
|
|
|
{
|
|
|
|
& "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86_amd64
|
2015-12-15 00:02:01 +01:00
|
|
|
$env:suffix = 64
|
2015-12-14 17:48:54 +01:00
|
|
|
}
|
2015-12-14 17:17:21 +01:00
|
|
|
}
|
|
|
|
if ($env:builder -eq "140")
|
|
|
|
{
|
2015-12-14 17:48:54 +01:00
|
|
|
if ($env:platform -eq "Win32")
|
|
|
|
{
|
|
|
|
& "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
|
2015-12-15 00:02:01 +01:00
|
|
|
$env:suffix = ""
|
2015-12-14 17:48:54 +01:00
|
|
|
}
|
|
|
|
if ($env:platform -eq "x64")
|
|
|
|
{
|
|
|
|
& "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
|
2015-12-15 00:02:01 +01:00
|
|
|
$env:suffix = 64
|
2015-12-14 17:48:54 +01:00
|
|
|
}
|
2015-12-14 17:17:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
# MySQL
|
|
|
|
- ps: |
|
|
|
|
if ($env:platform -eq "Win32")
|
|
|
|
{
|
|
|
|
$env:INCLUDE = "C:\mysql-5.7.9-win32\include;" + $env:INCLUDE
|
|
|
|
$env:LIB = "C:\mysql-5.7.9-win32\lib;" + $env:LIB
|
|
|
|
}
|
|
|
|
if ($env:platform -eq "x64")
|
|
|
|
{
|
|
|
|
$env:INCLUDE = "C:\Program Files\MySql\MySQL Server 5.6\include;" + $env:INCLUDE
|
|
|
|
$env:LIB = "C:\Program Files\MySql\MySQL Server 5.6\lib;" + $env:LIB
|
|
|
|
}
|
2015-12-09 09:26:51 +01:00
|
|
|
|
|
|
|
after_build:
|
2015-01-19 11:25:09 +01:00
|
|
|
|
|
|
|
build_script:
|
2015-12-14 17:17:21 +01:00
|
|
|
- buildwin %builder% 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%
|
2015-12-15 00:25:11 +01:00
|
|
|
- set EXCLUDE_TESTS=Data/ODBC,Data/MySQL,PDF
|
2015-12-09 09:26:51 +01:00
|
|
|
|
|
|
|
after_test:
|
|
|
|
|
|
|
|
test_script:
|
2015-12-15 00:02:01 +01:00
|
|
|
# - build\script\runtests2.cmd %suffix%
|
|
|
|
- ps: |
|
2015-12-15 00:25:11 +01:00
|
|
|
if ($env:configuration -eq "release")
|
2015-12-15 00:02:01 +01:00
|
|
|
{
|
|
|
|
& .\build\script\runtests2.cmd %suffix%
|
|
|
|
}
|
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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
|
|
|
|
|