1
0
mirror of synced 2024-12-22 12:40:00 +01:00

Fix deploy build by adding chromium

This commit is contained in:
Henry Schreiner 2020-03-24 17:19:16 +00:00
parent c255c34674
commit 5c3b5b8f1e

View File

@ -1,4 +1,3 @@
test_code: test_code:
image: rootproject/root:latest image: rootproject/root:latest
stage: test stage: test
@ -22,13 +21,14 @@ pages:
paths: paths:
- node_modules/ - node_modules/
before_script: before_script:
- apt update && apt install -y calibre calibre-bin - apt-get update && apt-get install -y calibre calibre-bin libxss1 libasound2
- npm install gitbook-cli svgexport -g # - npm install gitbook-cli svgexport
- gitbook fetch 3.2.3 - npx gitbook fetch 3.2.3
- gitbook install - npx gitbook install
script: script:
- gitbook build . public - npx gitbook build . public
- gitbook pdf . modern-cmake.pdf - 'sed -i "s/puppeteer.launch();/puppeteer.launch({args: [\"--no-sandbox\"]});/g" node_modules/svgexport/render.js'
- npx gitbook pdf . modern-cmake.pdf
- cp modern-cmake.pdf public/modern-cmake.pdf - cp modern-cmake.pdf public/modern-cmake.pdf
artifacts: artifacts:
paths: paths: