1
0
mirror of synced 2024-11-05 04:28:54 +01:00
modern-cmake/.gitlab-ci.yml
Henry Fredrick Schreiner 57a85750ba Adding PDF generation
2019-02-20 12:04:16 +01:00

39 lines
851 B
YAML

test_code:
image: rootproject/root-ubuntu16:6.12
stage: test
before_script:
- mkdir -p $HOME/.local
- curl -s "https://cmake.org/files/v3.13/cmake-3.13.4-Linux-x86_64.tar.gz" | tar --strip-components=1 -xz -C $HOME/.local
- export PATH=$HOME/.local/bin:$PATH
script:
- mkdir -p build
- cd build
- cmake ../examples
- VERBOSE=1 cmake --build .
- ctest
- cd ..
pages:
image: node:10
stage: deploy
only:
- master
cache:
paths:
- node_modules/
before_script:
- apt update && apt install -y calibre calibre-bin
- npm install gitbook-cli -g #
- gitbook fetch 3.2.3
- gitbook install
script:
- gitbook build . public
- gitbook pdf . modern-cmake.pdf
- cp modern-cmake.pdf public/modern-cmake.pdf
artifacts:
paths:
- public
expire_in: 1 week