Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WP Plugins
camo-image-proxy
Commits
251ae1c1
Commit
251ae1c1
authored
Aug 07, 2018
by
Erick Hitter
Browse files
Fix composer
parent
5bb0c9b4
Pipeline
#113
passed with stage
in 5 minutes and 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
251ae1c1
...
...
@@ -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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment