Skip to content

Commit

Permalink
running ci tests global and publish coverage results to coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
tnobody committed Dec 6, 2018
1 parent b3feaa3 commit 3309de8
Show file tree
Hide file tree
Showing 6 changed files with 3,549 additions and 6,606 deletions.
2 changes: 2 additions & 0 deletions .coveralls.yml
@@ -0,0 +1,2 @@
service_name: travis-pro
repo_token: soxbI8qvwuvdtlfTTxhmeXh9Y5GNyMdn2
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -21,6 +21,6 @@ jobs:
- stage: compile
script: npm run build
- stage: test
script: npm run build && npm test
script: npm run build && npm test && cat coverage/lcov.info | npx coveralls
- stage: analyse
script: sonar-scanner
11 changes: 11 additions & 0 deletions jest.config.base.js
@@ -0,0 +1,11 @@
module.exports = {
preset: 'ts-jest',
roots: [
"<rootDir>/src",
],
collectCoverage: true,
coveragePathIgnorePatterns: [
"(**/*.spec).(tsx?|ts?)$"
],
verbose: true
};
9 changes: 9 additions & 0 deletions jest.config.js
@@ -0,0 +1,9 @@
const base = require('./jest.config.base');

module.exports = {
...base,
projects: [
'<rootDir>/packages/*/jest.config.js'
],
coverageDirectory: '<rootDir>/coverage/'
}

0 comments on commit 3309de8

Please sign in to comment.