Skip to content

Commit

Permalink
don't run non-root tests
Browse files Browse the repository at this point in the history
  • Loading branch information
flotwig committed Oct 5, 2021
1 parent 5210080 commit fceeaf6
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,17 @@ commands:
- restore_cached_workspace
- run:
command: |
SPECS=`circleci tests glob "/root/cypress/packages/server/test/e2e/*spec*" | circleci tests split --split-by=timings`
ALL_SPECS=`circleci tests glob "/root/cypress/packages/server/test/e2e/*spec*"`
SPECS=
for file in $ALL_SPECS; do
# filter out non_root tests, they have their own stage
if [[ "$file" == *"non_root"* ]]; then
echo "Skipping $file"
continue
fi
SPECS="$SPECS $file"
done
SPECS=`echo $SPECS | xargs -n 1 | circleci tests split --split-by=timings`
echo SPECS=$SPECS
yarn workspace @packages/server test $SPECS --browser <<parameters.browser>>
- verify-mocha-results
Expand Down

0 comments on commit fceeaf6

Please sign in to comment.