[MM-39852] Setup docker image to run in CI for E2E (#1946)

* [MM-39852] Setup docker image to run in CI for E2E

* Setup remote docker

* Install docker

* Trying this

* And this

* how about this

* this

* Okay this

* dis one

* sdfsagsdags

* Now?

* aaaaaaa

* asdasdasd

* i am dumb

* blank

* Please work

* Lint fix

* Forgot to update a couple things

* OOPS

* Testing something since this one is still failing

* Trying robotjs instead

* test

* Remove stop docker

* Try without the admin user (since apparently turning off admin notices didn't work)

* Remove console statement

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
Devin Binnie
2022-01-17 10:20:11 -05:00
committed by GitHub
parent 6e8455e80e
commit 4a05b7c8d5
11 changed files with 205 additions and 69 deletions

View File

@@ -9,6 +9,13 @@ orbs:
owasp: entur/owasp@0.0.10
executors:
check-image:
working_directory: ~/mattermost-desktop
docker:
- image: electronuserland/builder:wine-chrome
environment:
TAR_OPTIONS: --no-same-owner
- image: mattermost/mattermost-preview
wine-chrome:
working_directory: ~/mattermost-desktop
docker:
@@ -127,12 +134,18 @@ commands:
path: /tmp/artifacts
jobs:
check:
executor: wine-chrome
executor: check-image
steps:
- checkout
- update_image:
apt_opts: "--no-install-recommends"
- run: wget https://github.com/mattermost/mmctl/releases/download/v6.0.0/linux_amd64.tar && tar -xvf linux_amd64.tar
- run: npm run check-types
- run:
name: Setup MM Docker Image
command: npm run test:docker
environment:
MMCTL_PATH: ./mmctl
- run: ELECTRON_DISABLE_SANDBOX=1 xvfb-run npm run test
- run: mkdir -p /tmp/test-results
- run: cp test-results.xml /tmp/test-results/