Created
January 12, 2014 20:55
-
-
Save xthiago/8390505 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
# Update aptitude. | |
aptitude update | |
# Install MySQL. | |
export DEBIAN_FRONTEND=noninteractive | |
aptitude -q -y install mysql-server mysql-client | |
exit 0; |
This file contains hidden or 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
#!/bin/bash | |
# Update aptitude. | |
aptitude update | |
# SCM tools & utils. | |
aptitude -y install git-core subversion | |
aptitude -y install vim zip unzip | |
exit 0; |
This file contains hidden or 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
#!/bin/bash | |
# Upgrades PEAR. | |
pear upgrade PEAR | |
# PHPUnit. | |
pear config-set auto_discover 1 | |
pear channel-discover pear.phpunit.de | |
pear install phpunit/PHPUnit | |
# PPW, PHPCPD, PHPLOC. | |
pear channel-discover components.ez.no | |
# PPW. | |
pear install phpunit/ppw | |
# PHPCPD. | |
pear install phpunit/phpcpd | |
# PHPLOC. | |
pear install phpunit/phploc | |
# PDepend. | |
pear channel-discover pear.pdepend.org | |
pear install pdepend/PHP_Depend-beta | |
# PHPMD (depends on PDepend) | |
pear channel-discover pear.phpmd.org | |
pear install --alldeps phpmd/PHP_PMD | |
# PHP CodeSniffer. | |
pear install pear/PHP_CodeSniffer | |
exit 0; |
This file contains hidden or 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
#!/bin/bash | |
# Upgrades PEAR. | |
pear upgrade PEAR | |
# Phing. | |
pear channel-discover pear.phing.info | |
pear install phing/phing | |
# Composer. | |
cd /usr/local/bin | |
wget http://getcomposer.org/composer.phar | |
chmod a+x composer.phar | |
exit 0; |
This file contains hidden or 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
#!/bin/bash | |
# Update aptitude. | |
aptitude update | |
# PHP (Apache as dependency). | |
aptitude -y install php5 php5-cli php5-common php5-curl php5-dev php5-intl php5-gd php5-json php5-mysql php5-sqlite php-pear | |
a2enmod rewrite | |
exit 0; |
This file contains hidden or 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
Vagrant::Config.run do |config| | |
config.vm.customize do |vm| | |
vm.name = "PHP dev" | |
vm.memory_size = 512 | |
end | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "ubuntu32" | |
# Assign this VM to a host only network IP, allowing you to access it | |
# via the IP. | |
config.vm.network "33.33.33.10" | |
# NFS shared folder. | |
config.vm.share_folder("v-root", "/vagrant", "/Users/eriksencosta/Dev/php", :nfs => true) | |
# Provisioning. | |
Vagrant::Config.run do |config| | |
config.vm.provision :shell, :path => "./db-mysql.sh" | |
config.vm.provision :shell, :path => "./dev-tools.sh" | |
config.vm.provision :shell, :path => "./php5.sh" | |
config.vm.provision :shell, :path => "./php5-qa.sh" | |
config.vm.provision :shell, :path => "./php5-tools.sh" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment