Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Camo Image Proxy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WP Plugins
Camo Image Proxy
Commits
bddcf8e6
Commit
bddcf8e6
authored
6 years ago
by
Erick Hitter
Browse files
Options
Downloads
Patches
Plain Diff
Another dep fix
parent
00be06c2
No related branches found
No related tags found
1 merge request
!1
Add GitLab CI
Checking pipeline status
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+18
-8
18 additions, 8 deletions
.gitlab-ci.yml
with
18 additions
and
8 deletions
.gitlab-ci.yml
+
18
−
8
View file @
bddcf8e6
...
@@ -11,20 +11,32 @@ before_script:
...
@@ -11,20 +11,32 @@ before_script:
-
apt-get -yqq update
-
apt-get -yqq update
# install the required packages for the running CI tests
# 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
# PHP extensions
-
docker-php-ext-install mbstring
-
docker-php-ext-install mbstring
mysqli
-
docker-php-ext-enable mbstring mysqli
pdo_mysql
intl gd zip bz2
-
docker-php-ext-enable mbstring mysqli intl gd zip bz2
# Install Composer
# Install Composer
-
curl -sS https://getcomposer.org/installer | php
-
curl -sS https://getcomposer.org/installer | php
# Set up WordPress tests
# 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
# PHPUnit
-
php composer.phar global require "phpunit/phpunit=6.1.*"
-
|
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
# Install PHPCS and WPCS
-
php composer.phar global require automattic/vipwpcs
-
php composer.phar global require automattic/vipwpcs
...
@@ -35,7 +47,6 @@ PHPunit:PHP5.3:MySQL:
...
@@ -35,7 +47,6 @@ PHPunit:PHP5.3:MySQL:
services
:
services
:
-
mysql:5.6
-
mysql:5.6
script
:
script
:
-
php composer.phar global require "phpunit/phpunit=4.8.*"
-
phpcs
-
phpcs
-
phpunit
-
phpunit
allow_failure
:
true
allow_failure
:
true
...
@@ -45,7 +56,6 @@ PHPunit:PHP5.6:MySQL:
...
@@ -45,7 +56,6 @@ PHPunit:PHP5.6:MySQL:
services
:
services
:
-
mysql:5.6
-
mysql:5.6
script
:
script
:
-
php composer.phar global require "phpunit/phpunit=4.8.*"
-
phpcs
-
phpcs
-
phpunit
-
phpunit
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment