Attempt to use new Travis API.

This commit is contained in:
Georges Dupéron 2016-08-23 14:48:53 +02:00
parent 31ff51e974
commit 991132accb

View File

@ -126,7 +126,7 @@ function renderBuildTimes(container, barValue, data, baseUrl) {
.attr('stroke', 'white')
.attr('class', 'build-time-bar')
.attr('fill', function(d) {
return d.result === 0 ? '#038035' : '#CC0000';
return d.state === 'passed' ? '#038035' : '#CC0000';
})
.on('click', function(d) {
window.open(baseUrl + d.id);
@ -215,7 +215,6 @@ function updateChart() {
});
function getDuration(build) {
console.log("duration:", build.duration/60);
return build.duration/60;
}