Attempt to use new Travis API.

This commit is contained in:
Georges Dupéron 2016-08-23 14:45:28 +02:00
parent 52196b1801
commit a6357fe95e

View File

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