Skip to content

Commit

Permalink
Initialise 4.x branch (matomo-org#15383)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteur authored Jan 13, 2020
1 parent dfd5f05 commit b247f85
Show file tree
Hide file tree
Showing 33 changed files with 54 additions and 51 deletions.
18 changes: 9 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,32 +36,32 @@ matrix:
fast_finish: true
include:
# PDO Mysql
- php: 5.6
- php: 7.2
env: TEST_SUITE=SystemTestsCore MYSQL_ADAPTER=PDO_MYSQL
sudo: required
- php: 5.6
- php: 7.2
env: TEST_SUITE=SystemTestsPlugins MYSQL_ADAPTER=PDO_MYSQL
sudo: required
- php: 5.6
- php: 7.2
env: TEST_SUITE=IntegrationTestsCore MYSQL_ADAPTER=PDO_MYSQL
sudo: required
- php: 5.6
- php: 7.2
env: TEST_SUITE=IntegrationTestsPlugins MYSQL_ADAPTER=PDO_MYSQL
sudo: required
- php: 5.6
- php: 7.2
env: TEST_SUITE=UnitTests MYSQL_ADAPTER=PDO_MYSQL
sudo: false
addons: false
# Javascript tests
- php: 5.6
- php: 7.2
env: TEST_SUITE=JavascriptTests MYSQL_ADAPTER=PDO_MYSQL
sudo: false
addons:
apt:
packages:
- nginx
- realpath
- php: 5.6
- php: 7.2
env: TEST_SUITE=AngularJSTests MYSQL_ADAPTER=PDO_MYSQL SKIP_COMPOSER_INSTALL=1
sudo: false
addons: false
Expand All @@ -73,10 +73,10 @@ matrix:
env: TEST_SUITE=AllTests MYSQL_ADAPTER=MYSQLI ALLTEST_EXTRA_OPTIONS="--run-second-half-only"
sudo: required
# UITests use a specific version because the default 5.5 (== 5.5.38) is missing FreeType support
- php: 5.5.33
- php: 7.2
env: TEST_SUITE=UITests MYSQL_ADAPTER=PDO_MYSQL UITEST_EXTRA_OPTIONS="--run-first-half-only"
sudo: false
- php: 5.5.33
- php: 7.2
env: TEST_SUITE=UITests MYSQL_ADAPTER=PDO_MYSQL UITEST_EXTRA_OPTIONS="--run-second-half-only"
sudo: false

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
},
"config":{
"platform": {
"php": "5.5.9"
"php": "7.2.0"
},
"prepend-autoloader": false
},
"require": {
"php": ">=5.5.9",
"php": ">=7.2.0",
"twig/twig": "~1.0",
"leafo/lessphp": "dev-php74-compat",
"symfony/console": "~2.6.0",
Expand Down
2 changes: 1 addition & 1 deletion config/global.ini.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@
maintenance_mode = 0

; Defines the release channel that shall be used. Currently available values are:
; "latest_stable", "latest_beta", "latest_3x_stable", "latest_3x_beta"
; "latest_stable", "latest_beta", "latest_4x_stable", "latest_4x_beta"
release_channel = "latest_stable"

; character used to automatically create categories in the Actions > Pages, Outlinks and Downloads reports
Expand Down
3 changes: 2 additions & 1 deletion core/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ final class Version
* The current Matomo version.
* @var string
*/
const VERSION = '3.13.1-rc2';
const VERSION = '4.0.0-b1';
const MAJOR_VERSION = 4;

public function isStableVersion($version)
{
Expand Down
2 changes: 1 addition & 1 deletion core/testMinimumPhpVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// 2) tests/travis/generator/Generator.php
// 3) composer.json (in two places)
// 4) tests/PHPUnit/Integration/ReleaseCheckListTest.php
$piwik_minimumPHPVersion = '5.5.9';
$piwik_minimumPHPVersion = '7.2.0';
$piwik_currentPHPVersion = PHP_VERSION;
$minimumPhpInvalid = version_compare($piwik_minimumPHPVersion, $piwik_currentPHPVersion) > 0;
if ($minimumPhpInvalid) {
Expand Down
2 changes: 1 addition & 1 deletion plugins/AnonymousPiwikUsageMeasurement
2 changes: 1 addition & 1 deletion plugins/Bandwidth
Submodule Bandwidth updated 2 files
+2 −2 lang/pt.json
+2 −2 plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,18 @@

use Piwik\Piwik;
use Piwik\Plugins\CoreUpdater\ReleaseChannel;
use Piwik\Version;

class Latest3XBeta extends ReleaseChannel
class LatestCurrentBeta extends ReleaseChannel
{
public function getId()
{
return 'latest_3x_beta';
return 'latest_'. Version::MAJOR_VERSION . 'x_beta';
}

public function getName()
{
return Piwik::translate('CoreUpdater_LatestXBetaRelease', '3.X');
return Piwik::translate('CoreUpdater_LatestXBetaRelease', Version::MAJOR_VERSION . '.X');
}

public function getDescription()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,18 @@

use Piwik\Piwik;
use Piwik\Plugins\CoreUpdater\ReleaseChannel;
use Piwik\Version;

class Latest3XStable extends ReleaseChannel
class LatestCurrentStable extends ReleaseChannel
{
public function getId()
{
return 'latest_3x_stable';
return 'latest_'.Version::MAJOR_VERSION.'x_stable';
}

public function getName()
{
return Piwik::translate('CoreUpdater_LatestXStableRelease', '3.X');
return Piwik::translate('CoreUpdater_LatestXStableRelease', Version::MAJOR_VERSION . '.X');
}

public function getDescription()
Expand Down
2 changes: 1 addition & 1 deletion plugins/CustomAlerts
2 changes: 1 addition & 1 deletion plugins/CustomDimensions
Submodule CustomDimensions updated 1 files
+2 −2 plugin.json
2 changes: 1 addition & 1 deletion plugins/DeviceDetectorCache
2 changes: 1 addition & 1 deletion plugins/ExampleLogTables/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "0.1.0",
"theme": false,
"require": {
"piwik": ">=3.0.0-b1,<4.0.0-b1"
"piwik": ">=4.0.0-b1,<5.0.0-b1"
},
"authors": [
{
Expand Down
2 changes: 1 addition & 1 deletion plugins/ExamplePlugin/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "0.1.0",
"theme": false,
"require": {
"piwik": ">=3.0.0-b1,<4.0.0-b1"
"piwik": ">=4.0.0-b1,<5.0.0-b1"
},
"authors": [
{
Expand Down
2 changes: 1 addition & 1 deletion plugins/ExampleTheme/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "0.1.0",
"theme": true,
"require": {
"piwik": ">=3.0.0-b1,<4.0.0-b1"
"piwik": ">=4.0.0-b1,<5.0.0-b1"
},
"stylesheet": "stylesheets/theme.less",
"homepage": "",
Expand Down
2 changes: 1 addition & 1 deletion plugins/LogViewer
Submodule LogViewer updated 1 files
+2 −2 plugin.json
2 changes: 1 addition & 1 deletion plugins/LoginHttpAuth
Submodule LoginHttpAuth updated 1 files
+2 −2 plugin.json
2 changes: 1 addition & 1 deletion plugins/LoginLdap
Submodule LoginLdap updated 1 files
+2 −3 plugin.json
2 changes: 1 addition & 1 deletion plugins/MarketingCampaignsReporting
2 changes: 1 addition & 1 deletion plugins/QueuedTracking
Submodule QueuedTracking updated 1 files
+2 −2 plugin.json
2 changes: 1 addition & 1 deletion plugins/SecurityInfo
Submodule SecurityInfo updated 1 files
+2 −2 plugin.json
2 changes: 1 addition & 1 deletion plugins/TagManager
Submodule TagManager updated 1 files
+2 −1 TagManager.php
2 changes: 1 addition & 1 deletion plugins/TasksTimetable
Submodule TasksTimetable updated 1 files
+2 −2 plugin.json
2 changes: 1 addition & 1 deletion plugins/TreemapVisualization
4 changes: 2 additions & 2 deletions tests/PHPUnit/Integration/Plugin/ReleaseChannelsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function getTestValidReleaseChannelIds()
return array(
array($exists = true, $id = 'latest_stable'),
array($exists = true, $id = 'latest_beta'),
array($exists = true, $id = 'latest_3x_stable'),
array($exists = true, $id = 'latest_4x_stable'),
array($exists = true, $id = 'laTest_stable'), // we do not check for exact match
array($exists = false, $id = ''),
array($exists = false, $id = 'latest'),
Expand All @@ -92,7 +92,7 @@ public function getTestActiveReleaseChannel()
{
return array(
array('latest_stable', 'latest_stable'),
array('latest_3x_stable', 'latest_3x_stable'),
array('latest_4x_stable', 'latest_4x_stable'),
array('latest_beta', 'latest_beta'),
array('latest_beta', 'latEst_betA'),
array('latest_stable', ''), // if nothing configured should return default (the one with lowest order)
Expand Down
2 changes: 1 addition & 1 deletion tests/PHPUnit/Integration/ReleaseCheckListTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ReleaseCheckListTest extends \PHPUnit_Framework_TestCase
{
private $globalConfig;

const MINIMUM_PHP_VERSION = '5.5.9';
const MINIMUM_PHP_VERSION = '7.2.0';

public function setUp()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@
<availableValues>
<latest_stable>Latest stable release (Recommended)</latest_stable>
<latest_beta>Latest beta release</latest_beta>
<latest_3x_stable>Latest stable 3.X (Long Term Support version)</latest_3x_stable>
<latest_3x_beta>Latest beta 3.X (Long Term Support version)</latest_3x_beta>
<latest_4x_stable>Latest stable 3.X (Long Term Support version)</latest_4x_stable>
<latest_4x_beta>Latest beta 3.X (Long Term Support version)</latest_4x_beta>
</availableValues>
<description />
<inlineHelp>While our development process includes thousands of automated tests, Beta Testers play a key role in achieving the &quot;No bug policy&quot; in Matomo.&lt;br/&gt;If Matomo is a critical part of your business, we recommend you use the latest stable release. If you use the latest beta and you find a bug or have a suggestion, please &lt;a target='_blank' rel='noreferrer noopener' href='https://developer.matomo.org/guides/core-team-workflow#influencing-piwik-development'&gt;see here&lt;/a&gt;.&lt;br /&gt;LTS (Long Term Support) versions receive only security and bug fixes.</inlineHelp>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@
<availableValues>
<latest_stable>Latest stable release (Recommended)</latest_stable>
<latest_beta>Latest beta release</latest_beta>
<latest_3x_stable>Latest stable 3.X (Long Term Support version)</latest_3x_stable>
<latest_3x_beta>Latest beta 3.X (Long Term Support version)</latest_3x_beta>
<latest_4x_stable>Latest stable 3.X (Long Term Support version)</latest_4x_stable>
<latest_4x_beta>Latest beta 3.X (Long Term Support version)</latest_4x_beta>
</availableValues>
<description />
<inlineHelp>While our &lt;a target='_blank' rel='noreferrer noopener' href='https://matomo.org/participate/development-process/'&gt;development process&lt;/a&gt; includes thousands of automated tests, Beta Testers play a key role in achieving the &quot;No bug policy&quot; in Matomo.&lt;br/&gt;If Matomo is a critical part of your business, we recommend you use the latest stable release. If you use the latest beta and you find a bug or have a suggestion, please &lt;a target='_blank' rel='noreferrer noopener' href='https://developer.matomo.org/guides/core-team-workflow#influencing-piwik-development'&gt;see here&lt;/a&gt;.&lt;br /&gt;LTS (Long Term Support) versions receive only security and bug fixes.</inlineHelp>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@
<availableValues>
<latest_stable>Latest stable release (Recommended)</latest_stable>
<latest_beta>Latest beta release</latest_beta>
<latest_3x_stable>Latest stable 3.X (Long Term Support version)</latest_3x_stable>
<latest_3x_beta>Latest beta 3.X (Long Term Support version)</latest_3x_beta>
<latest_4x_stable>Latest stable 3.X (Long Term Support version)</latest_4x_stable>
<latest_4x_beta>Latest beta 3.X (Long Term Support version)</latest_4x_beta>
</availableValues>
<description />
<inlineHelp>While our development process includes thousands of automated tests, Beta Testers play a key role in achieving the &quot;No bug policy&quot; in Matomo.&lt;br/&gt;If Matomo is a critical part of your business, we recommend you use the latest stable release. If you use the latest beta and you find a bug or have a suggestion, please &lt;a target='_blank' rel='noreferrer noopener' href='https://developer.matomo.org/guides/core-team-workflow#influencing-piwik-development'&gt;see here&lt;/a&gt;.&lt;br /&gt;LTS (Long Term Support) versions receive only security and bug fixes.</inlineHelp>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@
<availableValues>
<latest_stable>Latest stable release (Recommended)</latest_stable>
<latest_beta>Latest beta release</latest_beta>
<latest_3x_stable>Latest stable 3.X (Long Term Support version)</latest_3x_stable>
<latest_3x_beta>Latest beta 3.X (Long Term Support version)</latest_3x_beta>
<latest_4x_stable>Latest stable 3.X (Long Term Support version)</latest_4x_stable>
<latest_4x_beta>Latest beta 3.X (Long Term Support version)</latest_4x_beta>
</availableValues>
<description />
<inlineHelp>While our development process includes thousands of automated tests, Beta Testers play a key role in achieving the &quot;No bug policy&quot; in Matomo.&lt;br/&gt;If Matomo is a critical part of your business, we recommend you use the latest stable release. If you use the latest beta and you find a bug or have a suggestion, please &lt;a target='_blank' rel='noreferrer noopener' href='https://developer.matomo.org/guides/core-team-workflow#influencing-piwik-development'&gt;see here&lt;/a&gt;.&lt;br /&gt;LTS (Long Term Support) versions receive only security and bug fixes.</inlineHelp>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "0.1.0",
"theme": false,
"require": {
"piwik": ">=3.8.1-stable,<4.0.0-b1"
"piwik": ">=4.0.0-b1,<5.0.0-b1"
},
"authors": [
{
Expand Down
2 changes: 1 addition & 1 deletion tests/travis

0 comments on commit b247f85

Please sign in to comment.