Selecteer een pagina

Starting with Continues Integration can be hard. Where to start? Code Sniffer on an existing project can return loads and loads of invalid files. A nice way to start with Continues Integration is linting your PHP files. It is a basic test you can apply to any project. It is as easy as adding this one liner to your project:

This will lint you PHP files before executing you tests. It only outputs files that have an error. Files that are OK are skipped. Ther is only one downside: This can be pretty slow on large codebases. You can fix this by using multithreading:

With tests on large code base (~50.000 LOC) this reduces the time from 30 seconds to about 4 seconds.