Skip to content

Commit da3c157

Browse files
committed
Save coverage output from all test runs.
1 parent 62fc886 commit da3c157

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ install:
1616
- gulp run-codegen
1717

1818
script:
19-
- PHP_PARSER_VERSION=7_0 npm test
20-
- PHP_PARSER_VERSION=7_1 npm test
21-
- PHP_PARSER_VERSION=7_2 npm test
22-
- npm test
19+
- npm run pretest
20+
- npm run test:nyc
21+
- PHP_PARSER_VERSION=7_2 npm run test:nyc:combine
22+
- PHP_PARSER_VERSION=7_1 npm run test:nyc:combine
23+
- PHP_PARSER_VERSION=7_0 npm run test:nyc:combine
2324

2425
after_success: npm run test:coveralls

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@
4848
"build:codegen": "tsc -p ./tools/CodeGenerator",
4949
"build:validator": "tsc -p ./tools/Validator",
5050
"pretest": "tsc -p ./test",
51-
"test": "nyc mocha --require source-map-support/register --recursive ./out/test",
51+
"test": "mocha --recursive ./out/test",
5252
"test:coveralls": "nyc report --reporter=text-lcov | coveralls",
53+
"test:nyc": "nyc mocha --require source-map-support/register --recursive ./out/test",
54+
"test:nyc:combine": "nyc --no-clean mocha --require source-map-support/register --recursive ./out/test",
5355
"browserify": "browserify ./lib/main.js -d -s PhpParser -r ./lib/ErrorCode.json:../ErrorCode.json | exorcist ./lib/php-parser.map.js > ./lib/php-parser.js"
5456
}
5557
}

0 commit comments

Comments
 (0)