From d31b73831880254b5c6cf5691cda9a149fbc5f04 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Wed, 2 May 2018 14:19:14 -0700 Subject: [PATCH] [Tests] run bigint tests in CI with --harmony-bigint flag --- .nycrc | 4 ++-- .travis.yml | 3 +++ package.json | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.nycrc b/.nycrc index 6455ef3..23e1153 100644 --- a/.nycrc +++ b/.nycrc @@ -4,8 +4,8 @@ "instrumentation": false, "sourceMap": false, "reporter": "html", - "lines": 95.95, - "statements": 95, + "lines": 95.45, + "statements": 94.71, "functions": 96, "branches": 92, "exclude": [ diff --git a/.travis.yml b/.travis.yml index e89dcfd..f17c43b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,12 +26,15 @@ script: - 'if [ -n "${POSTTEST-}" ]; then npm run posttest ; fi' - 'if [ -n "${COVERAGE-}" ]; then npm run coverage ; fi' - 'if [ -n "${TEST-}" ]; then npm run tests-only ; fi' + - 'if [ -n "${BIGINT-}" ]; then npm run test:bigint ; fi' sudo: false env: - TEST=true matrix: fast_finish: true include: + - node_js: "10.0" + env: BIGINT=true - node_js: "node" env: COVERAGE=true - node_js: "9.10" diff --git a/package.json b/package.json index adcb85a..2a56432 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,10 @@ }, "scripts": { "test": "npm run tests-only", + "posttest": "npm run test:bigint", "pretests-only": "node test-core-js", "tests-only": "tape test/*.js", + "test:bigint": "node --harmony-bigint test/bigint", "coverage": "nyc npm run tests-only" }, "testling": {