The goal of this project is to facilitate the running of tests and code analysis against a Moodle plugin in Travis CI. All of these tests and tools are run everytime a change is pushed to a GitHub branch or pull request.
Why would you want to do this? It saves you from having to remember to setup and run PHPUnit, Behat, code checker, etc every single time you make a change. If you have enough test coverage, it also makes accepting pull requests painless because you can be more confident that the change wont break anything. There are many more advantages to using a service like Travis CI, like being able to test your code against multiple databases, multiple PHP versions, etc.
This project supports the following testing frameworks and code analysis tools:
- Moodle Code Checker
- Moodle PHPdoc check
- Mustache Linting
- Grunt tasks
- PHP Linting
- PHP Copy/Paste Detector
- PHP Mess Detector
Source: Introduction | Moodle Plugin CI