diff --git a/.gitignore b/.gitignore index aa459ab..04f0e58 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,6 @@ thumbs.db *.log node_modules/ -.idea \ No newline at end of file +.idea +coverage +.nyc_output diff --git a/.travis.yml b/.travis.yml index 6276252..8832c62 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,5 @@ +env: + CODECLIMATE_REPO_TOKEN: 1937cd951ca5a26580a65f98a7b627eb92126bdd2b272e3dec71f8396062d210 language: node_js node_js: - "6.1" diff --git a/README.md b/README.md index fc207e6..3a0040a 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ npm version -Coverage Status +

@@ -61,7 +61,6 @@ Fits the input data to a straight line with the equation `y = mx + c`. It return ### `regression.power(data, ?options)` ### `regression.polynomial(data, ?options)` ### `regression.sinusoidal(data, ?options)` -### `regression.gaussian(data, ?options)` ## Development diff --git a/package.json b/package.json index ad2a3ff..2fd815d 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "scripts": { "clean": "rm -rf dist && mkdir dist", "lint": "./node_modules/.bin/eslint src/** tests/**", - "test": "npm run lint && ./node_modules/.bin/mocha --compilers js:babel-core/register", + "test": "npm run lint && ./node_modules/.bin/nyc --reporter=lcov ./node_modules/.bin/mocha --compilers js:babel-core/register", "build": "npm run clean && npm run build-regression-js && npm run build-regression-min-js", "build-regression-js": "./node_modules/.bin/babel src/regression.js --out-file dist/regression.js", "build-regression-min-js": "BABEL_ENV=production ./node_modules/.bin/babel src/regression.js --out-file dist/regression.min.js" @@ -35,6 +35,7 @@ "eslint": "^3.19.0", "eslint-config-airbnb-base": "^11.2.0", "eslint-plugin-import": "^2.7.0", - "mocha": "^3.2.0" + "mocha": "^3.2.0", + "nyc": "^11.0.3" } }