From 0c712ae2608aab43ba2e6466b734d0e9fd236796 Mon Sep 17 00:00:00 2001 From: Eugenio Romano Date: Fri, 31 Jul 2020 23:39:12 +0100 Subject: [PATCH] improve smart runner (#5942) --- .gitignore | 1 + e2e/protractor.conf.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index 0866aee1de..cf9293e516 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,4 @@ e2e-output/ coverage/ /desktop.ini out-tsc +!/.protractor-smartrunner/ diff --git a/e2e/protractor.conf.js b/e2e/protractor.conf.js index 91f90b4ac8..f4916f64b5 100644 --- a/e2e/protractor.conf.js +++ b/e2e/protractor.conf.js @@ -189,6 +189,10 @@ exports.config = { }, async onPrepare() { + if (process.env.CI) { + SmartRunner.apply({repoHash: process.env.GIT_HASH || ''}); + } + retry.onPrepare(); jasmine.DEFAULT_TIMEOUT_INTERVAL = TIMEOUT;