Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/build-configurations.yml
Show First 20 Lines • Show All 469 Lines • ▼ Show 20 Lines | env: | ||||
# Any string will work, CI just needs to be defined | # Any string will work, CI just needs to be defined | ||||
CI: 'teamcity' | CI: 'teamcity' | ||||
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 ci | ||||
npm run build | npm run build | ||||
# Make sure the report is available even if the tests fail | # Make sure the report is available even if the tests fail | ||||
move_junit_report() { | move_junit_report() { | ||||
mv test "${BUILD_DIR}/" | mv test "${BUILD_DIR}/" | ||||
} | } | ||||
trap "move_junit_report" EXIT | trap "move_junit_report" EXIT | ||||
Show All 11 Lines |