Skip to content

Commit

Permalink
CDash 2.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zackgalbreath committed Nov 19, 2018
1 parent 9beaccb commit 6e33b90
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
rename = require("gulp-rename"),
sourcemaps = require('gulp-sourcemaps'),
uglify = require('gulp-uglify'),
release = false, // Change to true when cutting a release.
release = true, // Change to true when cutting a release.
version;

if (release) {
Expand Down
2 changes: 1 addition & 1 deletion include/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@

// Current version
$CDASH_VERSION_MAJOR = '2';
$CDASH_VERSION_MINOR = '5';
$CDASH_VERSION_MINOR = '6';
$CDASH_VERSION_PATCH = '0';
$CDASH_VERSION = $CDASH_VERSION_MAJOR . '.' . $CDASH_VERSION_MINOR . '.' . $CDASH_VERSION_PATCH;
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "CDash",
"version": "2.5.0",
"version": "2.6.0",
"description": "Continuous integration dashboard.",
"repository": "https://github.com/Kitware/CDash",
"license": "BSD-3-Clause",
Expand Down
11 changes: 11 additions & 0 deletions public/js/cdashUpgrade.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ function upgrade_tables()
{
nextstep = upgrade_2_6;
}
else if(version < 2.8)
{
nextstep = upgrade_2_8;
}

if(nextstep != '')
{
Expand Down Expand Up @@ -166,6 +170,13 @@ function upgrade_2_6()
sendAjax("#Upgrade-2-6-Status","upgrade.php?upgrade-2-6=1",text,done);
}

function upgrade_2_8()
{
var text = "Applying 2.8 patches";
$("#Upgrade-2-8-Status").html("<img src=\"img/loading.gif\"/> "+text+"...");
sendAjax("#Upgrade-2-8-Status","upgrade.php?upgrade-2-8=1",text,done);
}


// empty function needed
function done()
Expand Down
10 changes: 10 additions & 0 deletions public/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -827,6 +827,16 @@
return;
}

// 2.8 Upgrade
if (isset($_GET['upgrade-2-8'])) {
// Set the database version
setVersion();

// Put that the upgrade is done in the log
add_log('Upgrade done.', 'upgrade-2-8');
return;
}

// When adding new tables they should be added to the SQL installation file
// and here as well
if ($Upgrade) {
Expand Down
1 change: 1 addition & 0 deletions public/upgrade.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
<div id="Upgrade-2-2-Status"></div>
<div id="Upgrade-2-4-Status"></div>
<div id="Upgrade-2-6-Status"></div>
<div id="Upgrade-2-8-Status"></div>
<br/>
<div id="DoneStatus"></div>
<br/>
Expand Down

0 comments on commit 6e33b90

Please sign in to comment.