Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • add/junit
  • add/junit-lint
  • bad-master
  • develop
  • master
  • phpcs-typehint
6 results

Target

Select target project
  • wp-plugins/camo-image-proxy
1 result
Select Git revision
  • add/junit
  • add/junit-lint
  • bad-master
  • develop
  • master
  • phpcs-typehint
6 results
Show changes
Commits on Source (2)
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
......@@ -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;
}
......