[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [sysadmin/gerrit-ci-matrix] /: Fix some typos & bugs, improve rendering
From: Jan_Kundrát <jkt () kde ! org>
Date: 2016-10-01 0:45:38
Message-ID: E1bq8Qs-0003GL-FJ () code ! kde ! org
[Download RAW message or body]
Git commit ca99cd3176fa1099dff99213d7590d5ba4a76f55 by Jan Kundrát.
Committed on 14/09/2016 at 20:44.
Pushed by jkt into branch 'master'.
Fix some typos & bugs, improve rendering
M +15 -9 matrix.html
http://commits.kde.org/sysadmin/gerrit-ci-matrix/ca99cd3176fa1099dff99213d7590d5ba4a76f55
diff --git a/matrix.html b/matrix.html
index b65d917..8d606a7 100644
--- a/matrix.html
+++ b/matrix.html
@@ -7,13 +7,15 @@
body { background: white; text-color: black; }
tr.heading { font-weight: bold; }
.hidden { display: none; }
- td { border: 1px solid #222222; padding: 0.3em; }
+ td { border: 1px solid #222222; padding: 0.3em; max-width: 7em; text-align: center; }
+ tr td:first-child { text-align: left; max-width: initial; }
+ tr:first-child td:first-child { text-align: center; }
table { border-collapse: collapse; }
td.SUCCESS { background-color: #aaffaa; }
td.FAILURE { background-color: #ff8888; }
td.FAILURE_deps { background-color: #ff88ff; }
- td.FAILURE_build { background-color: #ff8888; }
- td.FAILURE_configure { background-color: #ff8888; }
+ td.FAILURE_configure { background-color: #ff6666; }
+ td.FAILURE_build { background-color: #ff6666; }
td.FAILURE_tests { background-color: #ffaaaa; }
td.NOT_REGISTERED { background-color: #9999ff; }
td.not-run { background-color: #dddddd; }
@@ -107,14 +109,14 @@ function loadCI(jQuery) {
var job = allResults[projectName][jobName];
var res = job.result;
td.attr('title', 'Duration: ' + format_duration(job.duration) + '\non ' + new Date(job.time * 1000));
- if (res == 'SUCCESS' || res == 'NOT_REGISTERED') {
+ if (res == 'SUCCESS') {
td.addClass(res);
td.append('OK');
} else if (res.lastIndexOf('FAILURE_deps', 0) === 0) {
td.addClass('FAILURE_deps');
td.append('dependencies');
- } else if (res.lastIndexOf('FAILURE_cofigure', 0) === 0) {
- td.addClass('FAILURE_cofigure');
+ } else if (res.lastIndexOf('FAILURE_configure', 0) === 0) {
+ td.addClass('FAILURE_configure');
td.append('cofigure');
} else if (res.lastIndexOf('FAILURE_build', 0) === 0) {
td.addClass('FAILURE_build');
@@ -122,13 +124,17 @@ function loadCI(jQuery) {
} else if (res.lastIndexOf('FAILURE_tests', 0) === 0 || res.lastIndexOf('Tests failed', 0) === 0) {
td.addClass('FAILURE_tests');
td.append('tests');
+ } else if (res == 'NOT_REGISTERED') {
+ td.addClass(res);
+ td.append('missing CI job');
} else {
- td.addClass('FAILURE ' + res);
+ td.addClass('FAILURE');
+ td.append('FAILURE\n' + res);
}
if (job.url != null) {
td.append(' ');
- var consoleLink = job.url.replace(/\/index\.html$/, '/shell_output.log');
- if (consoleLink != job.url) {
+ if (job.url) {
+ var consoleLink = job.url.replace(/\/index\.html$/, '/shell_output.log');
td.append($('<a>').attr('href', consoleLink).text('[log]'));
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic