Skip to content

Commit

Permalink
Update Travis and Sonar settings
Browse files Browse the repository at this point in the history
  • Loading branch information
silentsoft committed Mar 8, 2022
1 parent 5cc4ad5 commit 192ee83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ jobs:
directories:
- "$HOME/.m2"
before_install:
# "node" is an alias for the latest version
- nvm install node
- nvm install $(< .nvmrc)
script:
# the following command line builds the project, runs the tests with coverage and then execute the SonarCloud analysis
- mvn clean verify sonar:sonar -Pcoverage -DskipRedundantTests -Dsonar.projectKey=silentsoft_hits -Dsonar.sources=src/main/java,src/main/react
- npm install
- npm test
- mvn clean verify sonar:sonar -Pcoverage -DskipRedundantTests -Dsonar.projectKey=silentsoft_hits -Dsonar.sources=src/main/java,src/main/react -Dsonar.javascript.lcov.reportPaths=coverage/lcov.info

git:
depth: false
Expand Down
3 changes: 2 additions & 1 deletion config-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ module.exports = {
];
config.collectCoverage = true;
config.collectCoverageFrom = [
'<rootDir>/**/*.{js,jsx,ts,tsx}'
'**/*.{js,jsx,ts,tsx}',
'!**/*.d.ts'
];
config.coverageDirectory = path.resolve(__dirname, 'coverage');
return config;
Expand Down

0 comments on commit 192ee83

Please sign in to comment.