From 19ff32036e2adcf1e955ce17057ed04fadc706ae Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Mon, 18 Mar 2019 23:00:47 +0100 Subject: [PATCH] ci: enable parallelism for material-unit tests job (#29378) PR Close #29378 --- .circleci/config.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index cfd327a8d2..ba5ce302cd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -560,6 +560,16 @@ jobs: resource_class: xlarge docker: - image: *browsers_docker_image + # The Material unit tests support splitting the browsers across multiple CircleCI + # instances. Since by default this job launches two browsers, we run each browser + # in its own container instance. + # https://github.com/angular/material2/blob/7baeaa797b19da2d2998f0d26f6fede3c8a13714/test/karma.conf.js#L107-L110 + parallelism: 2 + environment: + # The Material unit tests also support launching the same browser multiple times by + # sharding individual specs across the defined multiple instances. + # See: https://github.com/angular/material2/blob/7baeaa797b19da2d2998f0d26f6fede3c8a13714/test/karma.conf.js#L113-L116 + KARMA_PARALLEL_BROWSERS: 3 steps: - *attach_workspace - *init_environment