Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/build-configurations.yml
Show First 20 Lines • Show All 519 Lines • ▼ Show 20 Lines | script: | | ||||
--rc lcov_branch_coverage=1 \ | --rc lcov_branch_coverage=1 \ | ||||
--summary coverage/lcov.info \ | --summary coverage/lcov.info \ | ||||
> coverage/lcov-report/coverage-summary.txt 2>&1 | > coverage/lcov-report/coverage-summary.txt 2>&1 | ||||
pushd coverage/lcov-report | pushd coverage/lcov-report | ||||
tar -czf ../coverage.tar.gz -- * | tar -czf ../coverage.tar.gz -- * | ||||
popd | popd | ||||
mv coverage/coverage.tar.gz "${BUILD_DIR}/" | mv coverage/coverage.tar.gz "${BUILD_DIR}/" | ||||
cashtab-components-tests: | |||||
runOnDiffRegex: | |||||
- web/cashtab-components/ | |||||
env: | |||||
# Any string will work, CI just needs to be defined | |||||
CI: 'teamcity' | |||||
JEST_SUITE_NAME: "Cashtab Components Test suites" | |||||
JEST_JUNIT_SUITE_NAME: "CashTab Components Unit Tests" | |||||
JEST_JUNIT_OUTPUT_DIR: "test/junit" | |||||
JEST_JUNIT_OUTPUT_NAME: "cashtab-components.xml" | |||||
script: | | |||||
pushd "${TOPLEVEL}/web/cashtab-components" | |||||
npm ci | |||||
npm run build | |||||
# Make sure the report is available even if the tests fail | |||||
move_junit_report() { | |||||
mv test "${BUILD_DIR}/" | |||||
} | |||||
trap "move_junit_report" EXIT | |||||
npm run test -- \ | |||||
--reporters=default \ | |||||
--reporters=jest-junit |