On the https://github.com/longxinH/xhprof fork I saw build script to automatically test PHP extension. It's worth pull that in here as well. Not sure if we should use Travis CI anymore though. Might try GitHub actions right away.