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
Compare revisions
master to develop
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
wp-plugins/camo-image-proxy
Select target project
No results found
develop
Select Git revision
Branches
add/junit
add/junit-lint
bad-master
develop
master
phpcs-typehint
6 results
Swap
Target
wp-plugins/camo-image-proxy
Select target project
wp-plugins/camo-image-proxy
1 result
master
Select Git revision
Branches
add/junit
add/junit-lint
bad-master
develop
master
phpcs-typehint
6 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Switch to shared CI configuration
· 8970d875
Erick Hitter
authored
3 years ago
8970d875
Switch to shared CI configuration
· 49e2f1e5
Erick Hitter
authored
3 years ago
49e2f1e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+2
-49
2 additions, 49 deletions
.gitlab-ci.yml
inc/class-rewrite-content.php
+1
-1
1 addition, 1 deletion
inc/class-rewrite-content.php
with
3 additions
and
50 deletions
.gitlab-ci.yml
View file @
49e2f1e5
variables
:
# Configure mysql service (https://hub.docker.com/_/mysql/)
MYSQL_DATABASE
:
wordpress_tests
MYSQL_ROOT_PASSWORD
:
mysql
cache
:
paths
:
-
$HOME/.composer
-
/root/.composer
before_script
:
# Set up WordPress tests
-
bash bin/install-wp-tests.sh $MYSQL_DATABASE root $MYSQL_ROOT_PASSWORD mysql latest
true
# PHPUnit
-
|
if [[ $(php -v) =~ "PHP 7." ]]; then
composer global require "phpunit/phpunit=6.1.*"
else
composer global require "phpunit/phpunit=4.8.*"
fi
# Install PHPCS and WPCS
-
composer global require automattic/vipwpcs
-
phpcs --config-set installed_paths $HOME/.composer/vendor/wp-coding-standards/wpcs,$HOME/.composer/vendor/automattic/vipwpcs
PHPunit:PHP7.0:MySQL
:
image
:
containers.ethitter.com:443/docker/images/php:7.0
services
:
-
mysql:5.6
script
:
-
phpcs -n
-
phpunit
PHPunit:PHP7.1:MySQL
:
image
:
containers.ethitter.com:443/docker/images/php:7.1
services
:
-
mysql:5.6
script
:
-
phpcs -n
-
phpunit
PHPunit:PHP7.2:MySQL
:
image
:
containers.ethitter.com:443/docker/images/php:7.2
services
:
-
mysql:5.6
script
:
-
phpcs -n
-
phpunit
include
:
-
remote
:
https://git.ethitter.com/gitlab/ci/wordpress/-/raw/main/plugins/default.yml
This diff is collapsed.
Click to expand it.
inc/class-rewrite-content.php
View file @
49e2f1e5
...
...
@@ -36,7 +36,7 @@ class Rewrite_Content {
* @param string $content Post content.
* @return string
*/
public
function
filter_the_content
(
string
$content
)
:
string
{
public
function
filter_the_content
(
string
$content
)
{
// TODO: only deal with image srcs, use DOM Document.
return
$content
;
}
...
...
This diff is collapsed.
Click to expand it.