geerlingguy / drupalci-sonar-jenkins

DEPRECATED - Drupal CI environment with SonarQube and Jenkins for Drupal Core code analysis.
41 stars 16 forks source link

Convert from PEAR to Composer #1

Closed geerlingguy closed 10 years ago

geerlingguy commented 10 years ago

I've already done some work on this, but was stymied here and there by some oddities using Composer with Jenkins/SonarQube (these applications expect a globally-available binary (so you could use $ phpunit on the command line, for example), but Composer's idea of global ≠ my idea of 'global' :(

geerlingguy commented 10 years ago

One way to emulate the old behavior would be to do global installs with composer as the root user, then symlink all the binaries installed in ~/.composer/vendor/* into somewhere in the Jenkins user's $PATH. This seems hacky, but might be the simplest way to still use Jenkins + Phing + sane configuration, since it seems most things were designed for a PEAR-like world.

geerlingguy commented 10 years ago

That was easy... but I forgot to reference this issue. See: https://github.com/geerlingguy/drupalci-sonar-jenkins/commit/90b45181e4ad5c26d893323b2f8c46db2f9ee123