Update GitLab CI build for screenshot generation
Use Xvfb to create an X11 display (server). Thanks to Matthias: copied from GitHub CI build
This commit is contained in:
parent
d5ed136642
commit
30a3054202
@ -63,6 +63,7 @@ pages:
|
|||||||
- apt update && apt -y install build-essential cmake ninja-build git man doxygen-latex
|
- apt update && apt -y install build-essential cmake ninja-build git man doxygen-latex
|
||||||
- apt -y install freeglut3-dev libfontconfig-dev libxft-dev libglew-dev libxcursor-dev libxinerama-dev libasound2-dev libcairo2-dev libpango1.0-dev
|
- apt -y install freeglut3-dev libfontconfig-dev libxft-dev libglew-dev libxcursor-dev libxinerama-dev libasound2-dev libcairo2-dev libpango1.0-dev
|
||||||
- apt -y install libwayland-dev wayland-protocols libxkbcommon-dev libdbus-1-dev libdecor-0-dev libgtk-3-dev
|
- apt -y install libwayland-dev wayland-protocols libxkbcommon-dev libdbus-1-dev libdecor-0-dev libgtk-3-dev
|
||||||
|
- apt -y install xvfb x11-xkb-utils xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic x11-apps
|
||||||
script:
|
script:
|
||||||
- date
|
- date
|
||||||
- pwd
|
- pwd
|
||||||
@ -70,9 +71,13 @@ pages:
|
|||||||
- doxygen --version
|
- doxygen --version
|
||||||
- mkdir build && cd build
|
- mkdir build && cd build
|
||||||
- cmake -G Ninja -D CMAKE_BUILD_TYPE=Debug -D FLTK_OPTION_CAIRO_WINDOW=ON ..
|
- cmake -G Ninja -D CMAKE_BUILD_TYPE=Debug -D FLTK_OPTION_CAIRO_WINDOW=ON ..
|
||||||
- date
|
- echo "start Xvfb ..."
|
||||||
- time ninja html
|
- Xvfb :19 -screen 0 1024x768x16 &
|
||||||
- time ninja pdf
|
- export DISPLAY=:19
|
||||||
|
- echo "generate HTML docs ..."
|
||||||
|
- date; time ninja html
|
||||||
|
- echo "generate PDF docs ..."
|
||||||
|
- date; time ninja pdf
|
||||||
- date
|
- date
|
||||||
- cd ..
|
- cd ..
|
||||||
- pwd
|
- pwd
|
||||||
@ -83,5 +88,5 @@ pages:
|
|||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
# keep artifacts of the latest three weekly builds
|
# keep artifacts of the latest three weeks
|
||||||
expire_in: 20 days
|
expire_in: 20 days
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user