From f0128dc8de69cad3bd151f6ef41b3ff828f91919 Mon Sep 17 00:00:00 2001 From: Moshe Zada Date: Mon, 25 Feb 2019 18:54:18 +0200 Subject: [PATCH] Add tomato integration --- .travis.yml | 3 +++ package.json | 2 +- src/mainGrid.js | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index e71ae40..ed06bb0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,5 +5,8 @@ node_js: - "lts/*" install: - npm install + - pip install --user git+https://github.com/moshe/pytest-tomato.git@debug#subdirectory=tomato-lib script: - npm test +after_script: + - tomato eslint.xml diff --git a/package.json b/package.json index 09d2d3a..3e266a8 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "", "main": "index.js", "scripts": { - "test": "eslint ." + "test": "eslint . -f junit > eslint.xml" }, "author": "", "license": "ISC", diff --git a/src/mainGrid.js b/src/mainGrid.js index dbff527..dc7bfb2 100644 --- a/src/mainGrid.js +++ b/src/mainGrid.js @@ -5,7 +5,7 @@ const RegressionLog = require('./components/regressionLog'); class BasicGrid { constructor(options) { - this.start = new Date(); + this.start = new Date() options.points = parseInt(options.points, 10); options.regressionPoints = parseInt(options.regressionPoints, 10); this.options = options;