File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,29 @@ jobs:
146146 echo "Current branch is $CIRCLE_BRANCH so skipping notifying Slack"
147147 fi
148148 when : on_fail
149+
150+ system_tests :
151+ << : *default_machine_config
152+ steps :
153+ - checkout
154+ - run :
155+ name : SYSTEM TESTS
156+ command : |
157+ export NVM_DIR="/opt/circleci/.nvm" &&
158+ [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" &&
159+ nvm install v10 &&
160+ npm install &&
161+ npm run build &&
162+ npm run test:system
163+ - run :
164+ name : Notify Slack on failure
165+ command : |
166+ if [[ "$CIRCLE_BRANCH" == "staging" ]]; then
167+ ./scripts/slack-notify-failure.sh "staging-system-tests-${CIRCLE_SHA1}"
168+ else
169+ echo "Current branch is $CIRCLE_BRANCH so skipping notifying Slack"
170+ fi
171+ when : on_fail
149172
150173 integration_tests :
151174 << : *default_machine_config
@@ -292,6 +315,8 @@ workflows:
292315 << : *main_branches_filter
293316 - unit_tests :
294317 << : *main_branches_filter
318+ - system_tests :
319+ << : *main_branches_filter
295320 - integration_tests :
296321 requires :
297322 - build_image
@@ -315,6 +340,8 @@ workflows:
315340 << : *staging_branch_only_filter
316341 - unit_tests :
317342 << : *staging_branch_only_filter
343+ - system_tests :
344+ << : *staging_branch_only_filter
318345 - integration_tests :
319346 requires :
320347 - build_image
@@ -339,6 +366,7 @@ workflows:
339366 requires :
340367 - build_image
341368 - unit_tests
369+ - system_tests
342370 - integration_tests
343371 - package_manager_test_apk
344372 - package_manager_test_apt
You can’t perform that action at this time.
0 commit comments