This project will demonstrate basic Drupal/Travis-CI integration on GitHub. Currently demonstrated features:
- Drupal and drush installation via Ansible and/or git.
- Drupal core test run via drush (both simpletest and PHPUnit).
- Contributed module test run via drush.
Over time, the following will be illustrated through the included .travis.yml
file:
- Behat test run (
drush brun
). - Static code analysis (using tools like PHPMD, CodeSniffer, etc.) and simple reporting.
Please watch this space for updates!
Travis CI offers deep integration with GitHub projects, but is developer-centric and isn't flexible in allowing you to define different access controls, reporting, and repositories outside of GitHub. Solutions like Jenkins CI or Go CI might be a better fit, depending on your needs. Below are examples of other live CI projects for continous testing and analysis Drupal/PHP code.
- DrupalCI by Midwestern Mac - Powered by Jenkins and SonarQube This site (which is powered by the drupalci-sonar-jenkins project) combines Jenkins with SonarQube to allow for deep PHP code analysis for Drupal core versions (and, in the future, other projects).
- Lightning .travis.yml
- **Negawatt server .travis.yml