Skip to content

Commit a7fd794

Browse files
committed
WIP #49 - Add Xvfb so Chrome can run on Linux
1 parent dc908ae commit a7fd794

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.appveyor.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,23 @@ version: '{branch}-{build}'
1414

1515
init:
1616
- cmd: git config --global core.autocrlf true
17+
18+
install:
19+
# This was taken from https://stackoverflow.com/questions/60304251/unable-to-open-x-display-when-trying-to-run-google-chrome-on-centos-rhel-7-5
20+
# It's the minimum dependencies for running Chrome in a headless environment on Linux
21+
- sh: |
22+
sudo apt-get update
23+
sudo apt install -y xorg xvfb gtk2-engines-pixbuf dbus-x11 xfonts-base xfonts-100dpi xfonts-75dpi xfonts-cyrillic xfonts-scalable
24+
1725
before_build:
1826
- dotnet --version
1927
- dotnet restore --verbosity m
2028
- dotnet clean
2129
- cmd: dotnet tool update -g docfx
30+
# Activate Xvfb and export a display so that Chrome can run in Linux
31+
- sh: |
32+
Xvfb -ac :99 -screen 0 1280x1024x16 &
33+
export DISPLAY=:99
2234
2335
build_script:
2436
- dotnet build

0 commit comments

Comments
 (0)