Skip to content

Commit

Permalink
Another attempt at coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
danielearwicker committed Dec 29, 2020
1 parent a4184a2 commit 949f2fd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
17 changes: 8 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@ env:
- MOBX_VERSION=5
- MOBX_VERSION=6
install:
- node version-switcher.js $MOBX_VERSION
- yarn
- node version-switcher.js $MOBX_VERSION
- yarn
script:
- pushd packages/computed-async-mobx
- yarn test
- popd
- pushd packages/computed-async-mobx
- yarn test
- popd
after_success:
- pwd
- cat ./packages/computed-async-mobx/coverage/lcov.info
- ls ./node_modules/coveralls/bin/
- cat ./packages/computed-async-mobx/coverage/lcov.info|./node_modules/coveralls/bin/coveralls.js
- pushd packages/computed-async-mobx
- yarn coverage
- popd
node_js:
- 14
2 changes: 0 additions & 2 deletions packages/computed-async-mobx/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverage: true,
coverageDirectory: 'coverage',
modulePathIgnorePatterns: ['built']
};
1 change: 1 addition & 0 deletions packages/computed-async-mobx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"scripts": {
"build": "tsc",
"test": "jest",
"coverage": "jest --coverage && cat ./coverage/lcov.info | coveralls",
"all": "npm run build && npm run test",
"prepublish": "npm run build && npm run test && npm run docs",
"start": "cd interactive-tests && parcel index.html",
Expand Down

0 comments on commit 949f2fd

Please sign in to comment.