poco/appveyor.yml
FrancisANDRE 2a5e836482 Comment reason why PowerShell does not work.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-15 14:25:34 +01:00

169 lines
4.3 KiB
YAML

version: 1.7.0-{branch}-{build}
cache:
- c:\mysql-5.7.9-win32
services:
- mysql
- mongodb
- mssql2014
platform:
- Win32
- x64
configuration:
- release
- debug
install:
- systeminfo
- c:\cygwin\bin\uname -a
- c:\cygwin\bin\cat /proc/cpuinfo
- c:\cygwin\bin\cat /proc/meminfo
- set
# MySQL 32 bit is not available by default on AppVeyor
- ps: |
if ($env:platform -eq "Win32")
{
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:\
}
}
environment:
bundling: bundled
matrix:
- builder: 120
linkmode: shared
- builder: 140
linkmode: shared
# - builder: 120
# linkmode: static_md
# - builder: 120
# linkmode: static_mt
before_build:
- ps: |
if ($env:builder -eq "120")
{
if ($env:platform -eq "Win32")
{
& "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86
$env:suffix = ""
}
if ($env:platform -eq "x64")
{
& "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86_amd64
$env:suffix = 64
}
}
if ($env:builder -eq "140")
{
if ($env:platform -eq "Win32")
{
& "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
$env:suffix = ""
}
if ($env:platform -eq "x64")
{
& "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
$env:suffix = 64
}
}
# 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
}
after_build:
build_script:
- buildwin %builder% build %linkmode% %configuration% %platform% samples tests msbuild minimal "C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
before_test:
- set PATH=%CD%\bin;%PATH%
- set PATH=%CD%\bin64;%PATH%
- set EXCLUDE_TESTS=Data/ODBC Data/MySQL PDF
after_test:
test_script:
- set suffix
- if %configuration%==release ( build\script\runtests2.cmd !suffix! )
#
# Unable to get a correct result with powershell...
# Job last more than one hour
#
# - 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
# }
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
on_build_status_changed: true
- provider: Slack
incoming_webhook: https://hooks.slack.com/services/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
auth_token:
secure: Xsss/K3VV9wZI9Ffwvafa67kyohNA437xJ3WA9fVI4w=
on_build_success: false
on_build_failure: true
on_build_status_changed: true