Added php qa tools and increased vagrant memory

This commit is contained in:
Alex Hyett 2015-12-20 20:12:16 +00:00
parent 232a9ca5f8
commit 8f001396ba
2 changed files with 13 additions and 1 deletions

View file

@ -19,9 +19,20 @@ RUN set -ex \
ENV NPM_CONFIG_LOGLEVEL info
ENV NODE_VERSION 5.3.0
# install nodejs, php composer and php qa
RUN curl -SLO "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz" \
&& curl -SLO "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" \
&& gpg --verify SHASUMS256.txt.asc \
&& grep " node-v$NODE_VERSION-linux-x64.tar.gz\$" SHASUMS256.txt.asc | sha256sum -c - \
&& tar -xzf "node-v$NODE_VERSION-linux-x64.tar.gz" -C /usr/local --strip-components=1 \
&& rm "node-v$NODE_VERSION-linux-x64.tar.gz" SHASUMS256.txt.asc
&& rm "node-v$NODE_VERSION-linux-x64.tar.gz" SHASUMS256.txt.asc \
&& curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer \
&& apt-get update && apt-get install -y zlib1g-dev zip git \
&& composer global require "phpunit/phpunit=4.4.*" \
&& composer global require "phploc/phploc=*" \
&& composer global require "sebastian/phpcpd=*" \
&& composer global require "squizlabs/php_codesniffer=2.1.*" \
&& git clone git://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git /usr/share/php/PHP/CodeSniffer/Standards/WordPress \
&& composer global require "pdepend/pdepend=2.0.*" \
&& composer global require "phpmd/phpmd=2.1.*" \
&& composer global require "mayflower/php-codebrowser=~1.1"

1
Vagrantfile vendored
View file

@ -20,5 +20,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provider :virtualbox do |vb|
vb.customize ['modifyvm', :id, '--natdnshostresolver1', 'on']
vb.customize ['modifyvm', :id, '--natdnsproxy1', 'on']
vb.memory = 1298
end
end