Skip to content

Commit 4cb8968

Browse files
tbranyenJohn Haley
authored andcommitted
Added in --expose-gc flag
Also added in --build-only stub, will fill in later
1 parent fd14c4e commit 4cb8968

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ branches:
3131
os:
3232
- linux
3333
- osx
34-
script: npm --expose-gc test
34+
script: npm test
3535
notifications:
3636
slack:
3737
secure: KglNSqZiid9YudCwkPFDh+sZfW5BwFlM70y67E4peHwwlbbV1sSBPHcs74ZHP/lqgEZ4hMv4N2NI58oYFD5/1a+tKIQP1TkdIMuq4j2LXheuirA2HDcydOVrsC8kRx5XFGKdVRg/uyX2dlRHcOWFhxrS6yc6IxtxYWlRTD2SmEc=

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
},
9090
"scripts": {
9191
"lint": "jshint lib test/tests",
92-
"cov": "istanbul cover node_modules/mocha/bin/_mocha -- test/runner test/tests --report=lcov",
92+
"cov": "node --expose-gc ./node_modules/istanbul/lib/cli.js cover _mocha -- test/runner test/tests --report=lcov",
9393
"mocha": "mocha test/runner test/tests",
9494
"test": "npm run lint && npm run cov",
9595
"missing-tests": "node generate/missing-tests",

test/tests/revwalk.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ describe("Revwalk", function() {
8787

8888
testGC("doesnt segfault when accessing .author() twice", function(done) {
8989
this.timeout(10000);
90+
9091
return Repository.open(reposPath).then(function(repository) {
9192
var walker = repository.createRevWalk();
9293
return repository.getMasterCommit().then(function(firstCommitOnMaster) {

0 commit comments

Comments
 (0)