Skip to content

Commit d31b738

Browse files
committed
[Tests] run bigint tests in CI with --harmony-bigint flag
1 parent 1ac548e commit d31b738

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.nycrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"instrumentation": false,
55
"sourceMap": false,
66
"reporter": "html",
7-
"lines": 95.95,
8-
"statements": 95,
7+
"lines": 95.45,
8+
"statements": 94.71,
99
"functions": 96,
1010
"branches": 92,
1111
"exclude": [

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,15 @@ script:
2626
- 'if [ -n "${POSTTEST-}" ]; then npm run posttest ; fi'
2727
- 'if [ -n "${COVERAGE-}" ]; then npm run coverage ; fi'
2828
- 'if [ -n "${TEST-}" ]; then npm run tests-only ; fi'
29+
- 'if [ -n "${BIGINT-}" ]; then npm run test:bigint ; fi'
2930
sudo: false
3031
env:
3132
- TEST=true
3233
matrix:
3334
fast_finish: true
3435
include:
36+
- node_js: "10.0"
37+
env: BIGINT=true
3538
- node_js: "node"
3639
env: COVERAGE=true
3740
- node_js: "9.10"

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
},
1111
"scripts": {
1212
"test": "npm run tests-only",
13+
"posttest": "npm run test:bigint",
1314
"pretests-only": "node test-core-js",
1415
"tests-only": "tape test/*.js",
16+
"test:bigint": "node --harmony-bigint test/bigint",
1517
"coverage": "nyc npm run tests-only"
1618
},
1719
"testling": {

0 commit comments

Comments
 (0)