Skip to content

Commit 19ff320

Browse files
devversionmatsko
authored andcommitted
ci: enable parallelism for material-unit tests job (angular#29378)
PR Close angular#29378
1 parent 37cc514 commit 19ff320

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.circleci/config.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,16 @@ jobs:
560560
resource_class: xlarge
561561
docker:
562562
- image: *browsers_docker_image
563+
# The Material unit tests support splitting the browsers across multiple CircleCI
564+
# instances. Since by default this job launches two browsers, we run each browser
565+
# in its own container instance.
566+
# https://github.com/angular/material2/blob/7baeaa797b19da2d2998f0d26f6fede3c8a13714/test/karma.conf.js#L107-L110
567+
parallelism: 2
568+
environment:
569+
# The Material unit tests also support launching the same browser multiple times by
570+
# sharding individual specs across the defined multiple instances.
571+
# See: https://github.com/angular/material2/blob/7baeaa797b19da2d2998f0d26f6fede3c8a13714/test/karma.conf.js#L113-L116
572+
KARMA_PARALLEL_BROWSERS: 3
563573
steps:
564574
- *attach_workspace
565575
- *init_environment

0 commit comments

Comments
 (0)