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:\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
|
2015-12-16 10:15:13 +01:00
|
|
|
logger: 'C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll'
|
2015-12-15 21:23:11 +01:00
|
|
|
samples: samples
|
|
|
|
tests: tests
|
2015-12-09 09:26:51 +01:00
|
|
|
|
|
|
|
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-15 21:23:11 +01:00
|
|
|
- buildwin %builder% build %linkmode% %configuration% %platform% %samples% %tests% msbuild minimal %logger%
|
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 12:15:15 +01:00
|
|
|
- set PATH=%CD%\bin64;%PATH%
|
2015-12-16 03:20:06 +01:00
|
|
|
- set EXCLUDE_TESTS=Data,Data/ODBC,Data/MySQL,PDF
|
2015-12-09 09:26:51 +01:00
|
|
|
|
|
|
|
after_test:
|
|
|
|
|
|
|
|
test_script:
|
2015-12-15 21:23:11 +01:00
|
|
|
- set suffix=""
|
2015-12-15 15:15:48 +01:00
|
|
|
- if %platform%==x64 ( set suffix=64 )
|
2015-12-15 12:15:15 +01:00
|
|
|
- if %configuration%==release ( build\script\runtests2.cmd !suffix! )
|
|
|
|
#
|
2015-12-15 14:25:34 +01:00
|
|
|
# Unable to get a correct result with powershell...
|
|
|
|
# Job last more than one hour
|
|
|
|
#
|
2015-12-15 12:15:15 +01:00
|
|
|
# - ps: |
|
|
|
|
# if ($env:configuration -eq "release")
|
|
|
|
# {
|
|
|
|
# if ($env:platform -eq "Win32")
|
|
|
|
# {
|
|
|
|
# $env:PATH = "$env:CD\bin;" + $env:PATH
|
|
|
|
# $process = Start-Process -NoNewWindow -Wait -FilePath .\build\script\runtests2.cmd -PassThru -RSO "cout" -RSE "cerr"
|
|
|
|
# $process.ExitCode
|
|
|
|
# }
|
|
|
|
# if ($env:platform -eq "x64")
|
|
|
|
# {
|
|
|
|
# $env:PATH = "$env:CD\bin64;" + $env:PATH
|
|
|
|
# $process = Start-Process -NoNewWindow -Wait -FilePath .\build\script\runtests2.cmd -PassThru -Args "64" -RSO "cout" -RSE "cerr"
|
|
|
|
# $process.ExitCode
|
|
|
|
# }
|
|
|
|
# Get-Content cout; Get-Content cerr
|
|
|
|
# }
|
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-15 12:15:15 +01:00
|
|
|
on_build_status_changed: true
|
2015-12-13 12:11:35 +01:00
|
|
|
|
|
|
|
- provider: Slack
|
|
|
|
incoming_webhook: https://hooks.slack.com/services/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
|
2015-12-15 12:15:15 +01:00
|
|
|
auth_token:
|
|
|
|
secure: Xsss/K3VV9wZI9Ffwvafa67kyohNA437xJ3WA9fVI4w=
|
2015-12-16 03:20:06 +01:00
|
|
|
channel: appveyor
|
2015-12-15 12:15:15 +01:00
|
|
|
on_build_success: false
|
2015-12-15 08:27:50 +01:00
|
|
|
on_build_failure: true
|
2015-12-15 12:15:15 +01:00
|
|
|
on_build_status_changed: true
|
2015-12-13 12:11:35 +01:00
|
|
|
|