Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
WP Plugins
camo-image-proxy
Commits
bddcf8e6
Commit
bddcf8e6
authored
Aug 07, 2018
by
Erick Hitter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Another dep fix
parent
00be06c2
Pipeline
#104
failed with stage
in 11 minutes and 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
8 deletions
+18
-8
.gitlab-ci.yml
.gitlab-ci.yml
+18
-8
No files found.
.gitlab-ci.yml
View file @
bddcf8e6
...
...
@@ -11,20 +11,32 @@ before_script:
-
apt-get -yqq update
# install the required packages for the running CI tests
-
apt-get -yqqf install zip unzip subversion mysql-client --fix-missing
-
|
apt-get -yqqf install zip unzip subversion mysql-client --fix-missing
if [[ $(lsb_relase -a) =~ "stretch" ]]; then
apt-get -yqqf install default-libmysqlclient-dev --fix-missing
else
apt-get -yqqf install libmysqlclient-dev --fix-missing
fi
# PHP extensions
-
docker-php-ext-install mbstring
-
docker-php-ext-enable mbstring mysqli
pdo_mysql
intl gd zip bz2
-
docker-php-ext-install mbstring
mysqli
-
docker-php-ext-enable mbstring mysqli intl gd zip bz2
# Install Composer
-
curl -sS https://getcomposer.org/installer | php
# Set up WordPress tests
-
bash bin/install-wp-tests.sh
wordpress_tests root mysql
mysql latest
true
-
bash bin/install-wp-tests.sh
$MYSQL_DATABASE root $MYSQL_ROOT_PASSWORD
mysql latest
true
# PHPUnit for most builds
-
php composer.phar global require "phpunit/phpunit=6.1.*"
# PHPUnit
-
|
if [[ $(php -v) =~ "^PHP 7" ]]; then
php composer.phar global require "phpunit/phpunit=6.1.*"
else
php composer.phar global require "phpunit/phpunit=4.8.*"
fi
# Install PHPCS and WPCS
-
php composer.phar global require automattic/vipwpcs
...
...
@@ -35,7 +47,6 @@ PHPunit:PHP5.3:MySQL:
services
:
-
mysql:5.6
script
:
-
php composer.phar global require "phpunit/phpunit=4.8.*"
-
phpcs
-
phpunit
allow_failure
:
true
...
...
@@ -45,7 +56,6 @@ PHPunit:PHP5.6:MySQL:
services
:
-
mysql:5.6
script
:
-
php composer.phar global require "phpunit/phpunit=4.8.*"
-
phpcs
-
phpunit
...
...
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