Skip to content

Commit

Permalink
[Tests] run bigint tests in CI with --harmony-bigint flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed May 2, 2018
1 parent 1ac548e commit d31b738
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .nycrc
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit d31b738

Please sign in to comment.