2019-01-24 11:22:27 -08:00
|
|
|
version: 2
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
docker:
|
|
|
|
- image: electronuserland/builder:wine-chrome
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: apt-get -y update
|
|
|
|
- run: apt-get -y install libusb-1.0-0-dev graphicsmagick libudev-dev
|
2019-01-24 13:37:54 -08:00
|
|
|
- run: apt-get -y install libxtst6 libxss1 libgtk2.0-0 libnss3 libasound2 libgconf-2-4 ffmpeg frei0r-plugins
|
2019-01-24 12:12:41 -08:00
|
|
|
# TODO: Just a quick try
|
|
|
|
- run: rm yarn.lock
|
2019-01-24 11:22:27 -08:00
|
|
|
- run: yarn install
|
|
|
|
- run:
|
|
|
|
name: Run Webpack
|
|
|
|
command: yarn dev
|
|
|
|
background: true
|
|
|
|
- run:
|
|
|
|
name: Run Mock RPC API
|
|
|
|
command: yarn e2e:serve
|
|
|
|
background: true
|
|
|
|
- run: yarn wait-on http://localhost:8080 && yarn wait-on http://localhost:18232
|
2019-01-24 13:35:54 -08:00
|
|
|
- run: xvfb-run --listen-tcp --server-num 44 --auth-file /tmp/xvfb.auth -s "-ac -screen 0 1920x1080x24" yarn e2e:run & export DISPLAY=:44 && ffmpeg -f x11grab -video_size 1920x1080 -i :44 -codec:v libx264 -r 12 e2e-record.mp4
|
|
|
|
- store_artifacts:
|
2019-01-24 13:37:54 -08:00
|
|
|
path: ./e2e-record.mp4
|
|
|
|
destination: e2e-record.mp4
|
2019-01-24 11:22:27 -08:00
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
test:
|
|
|
|
jobs:
|
2019-01-24 11:29:00 -08:00
|
|
|
- test:
|
2019-01-24 11:22:27 -08:00
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
only: feature/e2e
|