diff --git a/contrib/teamcity/build-configurations.yml b/contrib/teamcity/build-configurations.yml --- a/contrib/teamcity/build-configurations.yml +++ b/contrib/teamcity/build-configurations.yml @@ -463,6 +463,8 @@ cashtab-tests: runOnDiffRegex: - web/cashtab/ + artifacts: + coverage.tar.gz: coverage.tar.gz env: # Any string will work, CI just needs to be defined CI: 'teamcity' @@ -474,6 +476,14 @@ pushd "${TOPLEVEL}/web/cashtab" npm install npm run build - npm run test -- --reporters=jest-junit + npm run test --coverage -- \ + --reporters=jest-junit \ + --coverageReporters=text \ + --coverageReporters=lcov \ + --coverageReporters=teamcity mv test "${BUILD_DIR}/" + pushd coverage/lcov-report + tar -czf ../coverage.tar.gz -- * + popd + mv coverage/coverage.tar.gz "${BUILD_DIR}/" popd