Attempt to use new Travis API.

This commit is contained in:
Georges Dupéron 2016-08-23 14:46:20 +02:00
parent a6357fe95e
commit 2f5e77fe16

View File

@ -205,12 +205,13 @@ function updateChart() {
if (console)
{
console.log(json.commits[idx].branch, build.state, build.result, build.event_type);
console.log(json.commits[idx].branch, build.finished_at, build.state, build.event_type);
}
if ((onlyMaster && json.commits[idx].branch !== 'master')
|| (build.finished_at !== null)
|| (!includeFailed && build.state !== 'passed')
|| (build.event_type != "push" && build.event_type != "cron")) {
if (console) console.log("return");
return;
}