Build using cmake without some components whose dependencies are not yet available

Run tests in release mode.

Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
This commit is contained in:
FrancisANDRE 2015-12-09 09:26:51 +01:00
parent 19b3974938
commit b564f2f57b

View File

@ -1,11 +1,96 @@
version: '{build}'
cache:
- c:\OpenSSL-Win32
- c:\OpenSSL-Win64
- c:\ProgramData\chocolatey
- c:\mysql-5.7.9-win32
configuration:
# - Debug
- Release
install:
- systeminfo
- c:\cygwin\bin\uname -a
- c:\cygwin\bin\cat /proc/cpuinfo
- c:\cygwin\bin\cat /proc/meminfo
- cinst cmake
- ps: |
if (Test-Path "c:\OpenSSL-$env:ssl")
{
echo "using openssl from cache"
}
else
{
echo "downloading openssl"
Invoke-WebRequest "https://slproweb.com/download/$($env:ssl)OpenSSL-1_0_2d.exe" -OutFile c:\openssl-setup.exe
echo "installing openssl"
Start-Process -Wait -FilePath c:\openssl-setup.exe -ArgumentList "/silent /verysilent /sp- /suppressmsgboxes"
}
# 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
matrix:
- builder: cmake
ssl: Win32
vc: amd64_x86
target: x86
before_build:
after_build:
build_script:
- set PATH=C:\ProgramData\chocolatey\bin;%PATH%
- mkdir cmake-build
- cd cmake-build
- cmake ..
- cmake --build .
- pushd cmake-build
- cmake .. -DENABLE_DATA_MYSQL=OFF -DENABLE_CRYPTO=OFF -DENABLE_NETSSL=OFF -DENABLE_TESTS=ON -DENABLE_REDIS=OFF
- cmake --build . --config %configuration% -- /nologo /v:minimal
- popd
before_test:
after_test:
test_script:
- set PATH=%CD%\cmake-build\bin\Release;%PATH%
- set EXCLUDE_TESTS=Crypto,NetSLL_Win,Data/ODBC,Data/MySQL
- build\script\runtests2.cmd
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: false