1
0
mirror of synced 2024-12-22 12:40:00 +01:00
modern-cmake/.gitlab-ci.yml
2020-08-03 09:20:11 -04:00

38 lines
1.1 KiB
YAML

test_code:
image: rootproject/root:latest
stage: test
before_script:
- apt-get update && apt-get install -y make cmake libboost-dev git
# We will install latest CMake, even though Ubuntu has a recent one
- mkdir -p $HOME/.local
- curl -s "https://cmake.org/files/v3.18/cmake-3.18.1-Linux-x86_64.tar.gz" | tar --strip-components=1 -xz -C $HOME/.local
- export PATH=$HOME/.local/bin:$PATH
script:
- cmake -S examples -B build
- cmake --build build -v
- cmake --build build -t test
pages:
image: node:10
stage: deploy
only:
- master
cache:
paths:
- node_modules/
before_script:
- 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:
- 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:
- public
expire_in: 1 week