Attempt to use new Travis API.
This commit is contained in:
parent
52196b1801
commit
a6357fe95e
|
@ -208,8 +208,8 @@ function updateChart() {
|
||||||
console.log(json.commits[idx].branch, build.state, build.result, build.event_type);
|
console.log(json.commits[idx].branch, build.state, build.result, build.event_type);
|
||||||
}
|
}
|
||||||
if ((onlyMaster && json.commits[idx].branch !== 'master')
|
if ((onlyMaster && json.commits[idx].branch !== 'master')
|
||||||
|| (build.state !== 'finished')
|
|| (build.finished_at !== null)
|
||||||
|| (!includeFailed && build.result !== 0)
|
|| (!includeFailed && build.state !== 'passed')
|
||||||
|| (build.event_type != "push" && build.event_type != "cron")) {
|
|| (build.event_type != "push" && build.event_type != "cron")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user