From 9613e56af6ad7617f2777b73c7eb90edcf17d98c Mon Sep 17 00:00:00 2001 From: David Puglielli Date: Thu, 5 Oct 2017 14:41:25 -0700 Subject: [PATCH] Added OpenCPPCoverage and CodeCov to appveoyr.yml --- appveyor.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index 66ba81da..4e97c278 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -127,6 +127,8 @@ install: - ps: Get-Content ${env:APPVEYOR_BUILD_FOLDER}\test\functional\pdo_sqlsrv\MsSetup.inc - ps: (Get-Content ${env:APPVEYOR_BUILD_FOLDER}\test\functional\sqlsrv\MsSetup.inc) | ForEach-Object { $_ -replace "TARGET_SERVER", ${env:TEST_PHP_SQL_SERVER} -replace "TARGET_DATABASE", ${env:SQLSRV_DBNAME} -replace "TARGET_USERNAME", ${env:TEST_PHP_SQL_UID} -replace "TARGET_PASSWORD", ${env:TEST_PHP_SQL_PWD} } | Set-Content ${env:APPVEYOR_BUILD_FOLDER}\test\functional\sqlsrv\MsSetup.inc - ps: Get-Content ${env:APPVEYOR_BUILD_FOLDER}\test\functional\sqlsrv\MsSetup.inc + - appveyor DownloadFile http://github.com/OpenCppCoverage/OpenCppCoverage/releases/download/release-0.9.6.1/OpenCppCoverageSetup-x64-0.9.6.1.exe + - OpenCppCoverageSetup-x64-0.9.6.1.exe /VERYSILENT build_script: - '"C:\\Program Files (x86)\\Microsoft Visual Studio %PHP_VC%.0\\VC\\vcvarsall.bat" %BUILD_PLATFORM%' @@ -176,12 +178,15 @@ test_script: - type %APPVEYOR_BUILD_FOLDER%\test\functional\sqlsrv.log - php run-tests.php -p php.exe %APPVEYOR_BUILD_FOLDER%\test\functional\pdo_sqlsrv\*.phpt > %APPVEYOR_BUILD_FOLDER%\test\functional\pdo_sqlsrv.log 2>&1 - type %APPVEYOR_BUILD_FOLDER%\test\functional\pdo_sqlsrv.log + - OpenCppCoverage.exe --sources %APPVEYOR_BUILD_FOLDER%\source --modules *sqlsrv*.dll --export_type=cobertura:coverage.xml -- php %APPVEYOR_BUILD_FOLDER%\test\functional\sqlsrv\sqlsrv_param_input_variants.phpt - python %APPVEYOR_BUILD_FOLDER%\test\functional\setup\cleanup_dbs.py -dbname %SQLSRV_DBNAME% - python %APPVEYOR_BUILD_FOLDER%\test\functional\setup\cleanup_dbs.py -dbname %PDOSQLSRV_DBNAME% after_test: - cd %APPVEYOR_BUILD_FOLDER%\test\functional\ - python output.py + - pip install codecov + - codecov -f "coverage.xml" -t 431e6338-ad88-4c3e-9be0-1bf180826d26 - ps: $difffiles = Get-ChildItem sqlsrv\*.diff - ps: $outfiles = Get-ChildItem sqlsrv\*.out - ps: foreach($file in $difffiles){ls $file; more $file}