php-firebird icon indicating copy to clipboard operation
php-firebird copied to clipboard

Automatic build and testing suite would be nice

Open mlazdans opened this issue 4 months ago • 1 comments

It would be nice to prepare docker or virtual machine(s) for automatic building and testing. At the end collect results and generate nice report.

It's quit a a job to compile and run tests against all supported PHP, FB clients versions, architectures and tread safe / unsafe. For example on Windows alone I've got these targets:

7 PHP versions [7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5] 2 thread safety [nts, ts] 2 arch [x64, x86] 4 compile time libs [fb25, fb30, fb40, fb50] 4 runtime time libs [fbclient25, fbclient3, fbclient4, fbclient5] 4 servers [fb25, fb30, fb40, fb50]

That's 7*2*2*4=112 compilations and (112*4*number_of_tests)=448*number_of_tests tests. number_of_tests vary depending on target. fb25 client lib won't be able to talk to fb5 server, etc

And then there is Linux, macOS and what not 😅

mlazdans avatar Oct 23 '25 11:10 mlazdans

I've started work on https://github.com/FirebirdSQL/php-firebird/blob/master/build_scripts/Dockerfile for Linux builds but more work is needed.

mlazdans avatar Oct 23 '25 11:10 mlazdans