blob: 43cfbc63fe7325892f5de4b2eddaf64b78b4b998 [file] [log] [blame]
Ittay Sternf7926712019-07-07 19:23:03 +03001#!/usr/bin/env bash
2
3. $HOME/.nvm/nvm.sh
4
5set -x
6
7CYPRESS_HOME_DIR=$1
8TESTS_GROUP_FILE_1=cypress/pipeline/group1.txt
9TESTS_GROUP_FILE=cypress/pipeline/group2.generated.txt
10
11cd ${CYPRESS_HOME_DIR}
12
13# make group2 by "negating" group1.txt
14ls -1 cypress/integration/*/*.e2e.ts | comm -3 - ${TESTS_GROUP_FILE_1} > ${TESTS_GROUP_FILE}
15
16cat ${TESTS_GROUP_FILE}
Ittay Stern4c6e7742019-09-22 13:41:36 +030017npm run cypress:headless --max-old-space-size=4096 -- --spec=$(cat ${TESTS_GROUP_FILE} | tr '\n' ',')