File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,11 +14,23 @@ version: '{branch}-{build}'
1414
1515init :
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+
1725before_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
2335build_script :
2436 - dotnet build
You can’t perform that action at this time.
0 commit comments