Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/build-configurations.yml
Show First 20 Lines • Show All 468 Lines • ▼ Show 20 Lines | env: | ||||
JEST_SUITE_NAME: "Cashtab Test suites" | JEST_SUITE_NAME: "Cashtab Test suites" | ||||
JEST_JUNIT_SUITE_NAME: "CashTab Unit Tests" | JEST_JUNIT_SUITE_NAME: "CashTab Unit Tests" | ||||
JEST_JUNIT_OUTPUT_DIR: "test/junit" | JEST_JUNIT_OUTPUT_DIR: "test/junit" | ||||
JEST_JUNIT_OUTPUT_NAME: "cashtab.xml" | JEST_JUNIT_OUTPUT_NAME: "cashtab.xml" | ||||
script: | | script: | | ||||
pushd "${TOPLEVEL}/web/cashtab" | pushd "${TOPLEVEL}/web/cashtab" | ||||
npm install | npm install | ||||
npm run build | npm run build | ||||
npm run test -- --reporters=jest-junit | |||||
# Make sure the report is available even if the tests fail | |||||
move_junit_report() { | |||||
mv test "${BUILD_DIR}/" | mv test "${BUILD_DIR}/" | ||||
popd | } | ||||
trap "move_junit_report" EXIT | |||||
npm run test -- \ | |||||
--reporters=default \ | |||||
--reporters=jest-junit |