File tree 3 files changed +23
-7
lines changed
3 files changed +23
-7
lines changed Original file line number Diff line number Diff line change
1
+ node_modules
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ echo " Running Cypress tests headlessly without copying files"
3
+
4
+ # explanation of the "docker run" command line arguments
5
+ #
6
+ # -it = interactive terminal
7
+ # -v $PWD:/e2e = map current folder to /e2e inside the container
8
+ # -w /e2e = set working directy to /e2e
9
+ # $@ = pass any arguments to this script to the Cypress command
10
+ # like "./cy-run.sh --record"
11
+ #
12
+ # Docker image "cypress/included:3.2.0" has its entrypoint
13
+ # set to "cypress run" by default
14
+ docker run -it -v $PWD :/integration -w /integration cypress/included:7.6.0 $@
15
+
16
+ # if you need to restrict amount of memory or CPU power the
17
+ # container can use, see
18
+ # https://docs.docker.com/config/containers/resource_constraints/
19
+ # restrict total memory
20
+ # --memory=600m --memory-swap=600m
21
+ # restrict CPU share
22
+ # --cpus=0.3
You can’t perform that action at this time.
0 commit comments