From 5c3b5b8f1ed0d6bd0ab6acec9aaa9c8e173ec3a1 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Tue, 24 Mar 2020 17:19:16 +0000 Subject: [PATCH] Fix deploy build by adding chromium --- .gitlab-ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index caa0a01..d5300ca 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,3 @@ - test_code: image: rootproject/root:latest stage: test @@ -22,13 +21,14 @@ pages: paths: - node_modules/ before_script: - - apt update && apt install -y calibre calibre-bin - - npm install gitbook-cli svgexport -g # - - gitbook fetch 3.2.3 - - gitbook install + - apt-get update && apt-get install -y calibre calibre-bin libxss1 libasound2 + - npm install gitbook-cli svgexport + - npx gitbook fetch 3.2.3 + - npx gitbook install script: - - gitbook build . public - - gitbook pdf . modern-cmake.pdf + - npx gitbook build . public + - '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 artifacts: paths: