Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
script
.gitignore
.travis.yml
README.md

README.md

Travis Scanner

Install

cd script
npm install
npm run-script build

Usage

Download jobs

Download all the Travis-CI jobs into DEST folder (see script/collect.js). The JSON files are called X-Y.json, eg 480037011-480037260.json. This means that the file contains all jobs between 480037011 and 480037260. This is way more performant that saving one job per file.

npm run-script collect

TravisCI real-time

User interface that monitors the jobs that are currently running at Travis-CI

npm run-script server
open http://localhost:9080

Parse Travis-CI log

const log_parser = require("./parser/parser-init").parser;
job = {id: '480040000'}
log_parser(job, (tests, errors) => {
    job.tests = tests;
    job.errors = errors;
    let count = 0;
    let nbFailure = 0;
    let nbError = 0;
    let nbSkipped = 0;
    let time = 0.0;
    for (let test of tests) {
        count += test.nbTest;
        nbFailure += test.nbFailure;
        nbError += test.nbError;
        nbSkipped += test.nbSkipped;
        time += test.time;
    }
    console.log(count, nbFailure, nbError, nbSkipped, time, errors.length)
});
You can’t perform that action at this time.