Commit 251ae1c1 authored by Erick Hitter's avatar Erick Hitter

Fix composer

parent 5bb0c9b4
Pipeline #113 passed with stage
in 5 minutes and 34 seconds
......@@ -26,6 +26,8 @@ before_script:
# Install Composer
- curl -sS https://getcomposer.org/installer | php
- mv composer.phar /usr/local/bin/composer
- export PATH="$HOME/.composer/vendor/bin:$PATH"
# Set up WordPress tests
- bash bin/install-wp-tests.sh $MYSQL_DATABASE root $MYSQL_ROOT_PASSWORD mysql latest true
......@@ -33,13 +35,13 @@ before_script:
# PHPUnit
- |
if [[ $(php -v) =~ "PHP 7." ]]; then
php composer.phar global require "phpunit/phpunit=6.1.*"
composer global require "phpunit/phpunit=6.1.*"
else
php composer.phar global require "phpunit/phpunit=4.8.*"
composer global require "phpunit/phpunit=4.8.*"
fi
# Install PHPCS and WPCS
- php composer.phar global require automattic/vipwpcs
- composer global require automattic/vipwpcs
- phpcs --config-set installed_paths $HOME/.composer/vendor/wp-coding-standards/wpcs,$HOME/.composer/vendor/automattic/vipwpcs
PHPunit:PHP5.3:MySQL:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment