From 859e636d1a3d82be72244d91c584ecfbeacf2d84 Mon Sep 17 00:00:00 2001
From: rschamp <rschamp@media.mit.edu>
Date: Mon, 23 Sep 2019 21:48:47 -0400
Subject: [PATCH] Moar parallel

---
 .circleci/config.yml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/.circleci/config.yml b/.circleci/config.yml
index 00a1f0fe0..7e004c39d 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -109,17 +109,21 @@ jobs:
           path: dist
   integration:
     <<: *defaults
+    parallelism: 2
     environment:
       JEST_JUNIT_OUTPUT_NAME: results.txt
     steps:
       - *restore_git_cache
       - checkout
       - *restore_npm_cache
+      - *restore_build_cache
       - run:
           name: Integration
           environment:
               JEST_JUNIT_OUTPUT_DIR: test-results/integration
-          command: npm run test:integration -- --reporters="default" --reporters="jest-junit"
+          command: |
+            export TESTFILES=$(circleci tests glob "test/integration/*.test.js" | circleci tests split --split-by=timings)
+            $(npm bin)/jest ${TESTFILES} --reporters="default" --reporters="jest-junit"
       - store_test_results:
           path: test-results
 
-- 
GitLab