ci(config): use xvfb-run
This commit is contained in:
parent
69a0728b63
commit
1033366109
|
@ -21,14 +21,11 @@ jobs:
|
||||||
command: yarn e2e:serve
|
command: yarn e2e:serve
|
||||||
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:
|
|
||||||
command: Xvfb -ac :99 -screen 0 1280x1024x24
|
|
||||||
background: true
|
|
||||||
- run:
|
- run:
|
||||||
command: coproc ffmpeg -f x11grab -video_size 1024x768 -i :99 -codec:v libx264 -r 12 /tmp/e2e-record.mp4 & sleep 600 && echo 'q' >&"${COPROC[1]}"
|
command: coproc ffmpeg -f x11grab -video_size 1024x768 -i :99 -codec:v libx264 -r 12 /tmp/e2e-record.mp4 & sleep 600 && echo 'q' >&"${COPROC[1]}"
|
||||||
background: true
|
background: true
|
||||||
- run: export DISPLAY=:99
|
- run: export DISPLAY=:99
|
||||||
- run: yarn e2e:run
|
- run: xvfb-run --listen-tcp --server-num=99 --auth-file /tmp/xvfb.auth -s "-ac -screen 0 1024x768x24" yarn e2e:run
|
||||||
- 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