From 70297a3a92defcfbc552732d6ef3fd392b53eb62 Mon Sep 17 00:00:00 2001 From: George Lima Date: Thu, 24 Jan 2019 20:11:16 -0300 Subject: [PATCH] ci(config): update xvfb with coproc --- .circleci/config.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1520717..d69faf3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -21,11 +21,8 @@ jobs: command: yarn e2e:serve background: true - run: yarn wait-on http://localhost:8080 && yarn wait-on http://localhost:18232 - - 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]}" - background: true - 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 + - 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 12 /tmp/e2e-record.mp4 & sleep 600 && echo 'q' >&"${COPROC[1]}") - store_artifacts: path: /tmp/e2e-record.mp4 destination: e2e-record.mp4