Created
May 11, 2012 20:22
-
-
Save deizel/2662198 to your computer and use it in GitHub Desktop.
joindin test suite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set development values to php.ini | |
augeas { 'set-apache-conf-values': | |
context => '/files/etc/httpd/conf/httpd.conf', | |
changes => [ | |
'set EnableMMAP/param off', | |
'set EnableSendfile/param off', | |
], | |
require => Service['apache'], | |
#notify => Service['apache'], # circular dependency? | |
} | |
# Install ant to build test suite | |
package { 'ant': | |
require => Notify['running'], | |
} | |
# Install required PEAR modules for test suite | |
package { 'php-pear': | |
require => Notify['running'], | |
} | |
# Install test-suite tools | |
exec { 'php-unit': | |
creates => '/usr/bin/phpunit', | |
command => 'pear config-set auto_discover 1 && \ | |
pear install pear.phpunit.de/PHPUnit', | |
require => Package['php-pear'], | |
before => Notify['test'], | |
} | |
exec { 'phploc': | |
creates => '/usr/bin/phploc', | |
command => 'pear install pear.phpunit.de/phploc', | |
require => Package['php-pear'], | |
before => Notify['test'], | |
} | |
exec { 'phpcpd': | |
creates => '/usr/bin/phpcpd', | |
command => 'pear install pear.phpunit.de/phpcpd', | |
require => Package['php-pear'], | |
before => Notify['test'], | |
} | |
package { 'php-xml': | |
require => Package['php-pear'], | |
} | |
exec { 'pdepend': | |
creates => '/usr/bin/pdepend', | |
command => 'pear channel-discover pear.pdepend.org && \ | |
pear install pdepend/PHP_Depend-beta', | |
require => Package['php-xml'], | |
} | |
exec { 'phpmd': | |
creates => '/usr/bin/phpmd', | |
command => 'pear channel-discover pear.phpmd.org && \ | |
pear install phpmd/PHP_PMD', | |
require => Exec['pdepend'], | |
before => Notify['test'], | |
} | |
package { 'graphviz': } | |
exec { 'phpdoc': | |
creates => '/usr/bin/phpdoc', | |
command => 'pear channel-discover pear.phpdoc.org && \ | |
pear install phpdoc/phpDocumentor-alpha', | |
require => [ | |
Package['php-pear'], | |
Package['graphviz'], | |
], | |
before => Notify['test'], | |
} | |
exec { 'phpcs': | |
creates => '/usr/bin/phpcs', | |
command => 'pear install PHP_CodeSniffer', | |
require => Package['php-pear'], | |
before => Notify['test'], | |
} | |
# Announce test-suite | |
notify { 'test': | |
message => 'Test-suite ready - run in VM with `cd /vagrant && ant build`', | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment