ci(config): run xvfb in background
This commit is contained in:
parent
7021c14b7a
commit
792f76cd77
|
@ -22,7 +22,12 @@ jobs:
|
||||||
background: true
|
background: true
|
||||||
- run: yarn wait-on http://localhost:8080 && yarn wait-on http://localhost:18232
|
- run: yarn wait-on http://localhost:8080 && yarn wait-on http://localhost:18232
|
||||||
- run: export DISPLAY=:99
|
- run: export DISPLAY=:99
|
||||||
- run: xvfb-run --listen-tcp --server-num=99 --auth-file /tmp/xvfb.auth -s "-ac -screen 0 1024x768x24" yarn e2e:run & (coproc ffmpeg -f x11grab -video_size 1024x768 -i :99 -codec:v libx264 -r 5 /tmp/e2e-record.mp4 & sleep 60) && echo 'q' >&"${COPROC[1]}"
|
- run:
|
||||||
|
command: xvfb-run --listen-tcp --server-num=99 --auth-file /tmp/xvfb.auth -s "-ac -screen 0 1024x768x24" yarn e2e:run
|
||||||
|
background: true
|
||||||
|
- run: |
|
||||||
|
(coproc ffmpeg -f x11grab -video_size 1024x768 -i :99 -codec:v libx264 -r 5 /tmp/e2e-record.mp4 & sleep 40)
|
||||||
|
echo 'q' >&"${COPROC[1]}"
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: /tmp/e2e-record.mp4
|
path: /tmp/e2e-record.mp4
|
||||||
destination: e2e-record.mp4
|
destination: e2e-record.mp4
|
||||||
|
|
Loading…
Reference in New Issue