diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 32c7ffbd218a500f2eace8f2dbf14589314bbdef..d5e2c337d3265764adfe8e3fb1e3a197a2ac4e9f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,7 +7,7 @@ variables: CODECEPTION_PARALLEL: 1 # only for free plugin -include: 'https://gitlab.com/wpdesk/gitlab-ci/raw/master/gitlab-ci-free.yml' +include: '${CI_SERVER_URL}/wpdesk/gitlab-ci/raw/master/gitlab-ci-free.yml' integration:earliest: when: manual diff --git a/changelog.txt b/changelog.txt index 6407fc15a15b5d6f2a3380683ee69921e03fef94..19200a929171c90a422f646c5b85c78cee576ad3 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,7 @@ *** plugin-template Changelog *** -## [1.0.0] - 2017-06-20 +## [1.0.0] - 2022-10-01 ### Added -- use https://keepachangelog.com/en/1.0.0/ standards in your changelog +- First Release! + +##### Added,Fixed diff --git a/plugin-template.php b/plugin-template.php index 755f3bc22ed3e9498c61a182cf8e7eae2ab220a4..8132cab9c831f393d59f2c46b00f821742973981 100644 --- a/plugin-template.php +++ b/plugin-template.php @@ -10,9 +10,9 @@ * Domain Path: /lang/ * * Requires at least: 5.7 - * Tested up to: 6.0 - * WC requires at least: 6.6 - * WC tested up to: 7.0 + * Tested up to: 6.1 + * WC requires at least: 7.0 + * WC tested up to: 7.4 * Requires PHP: 7.2 * * Copyright 2022 WP Desk Ltd. @@ -49,6 +49,7 @@ $plugin_dir = __DIR__; // todo: only for paid plugins. $plugin_shops = [ 'default' => 'https://www.wpdesk.net/', + 'pl_PL' => 'https://www.wpdesk.pl/', ]; $requirements = [ diff --git a/scoper.inc.php b/scoper.inc.php index 2c3bf177f1223bf762e79dbb1e49d93addb584c8..ec67c2044fd4739c2b508d0b5251b72614f7c7a8 100644 --- a/scoper.inc.php +++ b/scoper.inc.php @@ -17,7 +17,21 @@ return [ Finder::create() ->files() ->ignoreVCS( true ) - ->name( [ '*.php', 'composer.json', '*.css', '*.js', '*.jpg', '*.png', '*.wsdl' ] ) + ->name( [ + '*.php', + 'composer.json', + '*.css', + '*.js', + '*.scss', + '*.jsx', + '*.jpg', + '*.png', + '*.svg', + '*.ttf', + '*.otf', + '*.woff', + '*.woff2', + ] ) ->exclude( [ 'doc', 'test', diff --git a/tests/integration/bootstrap.php b/tests/integration/bootstrap.php index 2bcf354811687de10e5ecb3a62d961bd2f10729e..2abbfdc3b2c756cb8c2d36f2a98386ff7436e81b 100644 --- a/tests/integration/bootstrap.php +++ b/tests/integration/bootstrap.php @@ -1,6 +1,6 @@ <?php -ini_set('error_reporting', E_ALL); // or error_reporting(E_ALL); +error_reporting( E_ALL & ~E_DEPRECATED ); ini_set('display_errors', '1'); ini_set('display_startup_errors', '1'); diff --git a/tests/unit/bootstrap.php b/tests/unit/bootstrap.php index cb597776ea4e7f538a8aaaeed8700498ffcb8418..1a91701a59b0add3c091df2f6319eec133e48642 100644 --- a/tests/unit/bootstrap.php +++ b/tests/unit/bootstrap.php @@ -7,17 +7,5 @@ require_once __DIR__ . '/../../vendor/autoload.php'; error_reporting( E_ALL & ~E_DEPRECATED ); -if ( getenv( 'PLUGIN_PATH' ) !== false ) { - define( 'PLUGIN_PATH', getenv( 'PLUGIN_PATH' ) ); -} else { - define( 'PLUGIN_PATH', __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR ); -} - -if ( getenv( 'ABSPATH' ) !== false ) { - define( 'ABSPATH', getenv( 'ABSPATH' ) ); -} else { - define( 'ABSPATH', PLUGIN_PATH . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR ); -} - WP_Mock::setUsePatchwork( true ); WP_Mock::bootstrap();