1
0
mirror of synced 2024-12-22 20:50:00 +01:00
modern-cmake/.gitlab-ci.yml

38 lines
937 B
YAML
Raw Normal View History

2016-06-27 09:33:28 +00:00
2018-04-05 08:07:40 +02:00
test_code:
2019-08-07 05:06:55 +00:00
image: rootproject/root:latest
2018-04-05 08:07:40 +02:00
stage: test
before_script:
2019-08-07 05:06:55 +00:00
- yum install -y make cmake boost-devel git
# will install latest CMake, even though Fedora has a recent one
2018-04-05 08:07:40 +02:00
- mkdir -p $HOME/.local
2019-09-09 11:34:50 -04:00
- curl -s "https://cmake.org/files/v3.15/cmake-3.15.3-Linux-x86_64.tar.gz" | tar --strip-components=1 -xz -C $HOME/.local
2018-04-05 08:07:40 +02:00
- export PATH=$HOME/.local/bin:$PATH
script:
2019-08-07 05:06:55 +00:00
- cmake -S examples -B build
- cmake --build build -v
- cmake --build build -t test
2016-06-27 09:33:28 +00:00
pages:
2018-10-18 14:47:00 +02:00
image: node:10
2016-06-27 09:33:28 +00:00
stage: deploy
2018-04-05 08:07:40 +02:00
only:
- master
cache:
paths:
- node_modules/
before_script:
2019-02-20 11:52:52 +01:00
- apt update && apt install -y calibre calibre-bin
2018-04-05 08:07:40 +02:00
- npm install gitbook-cli -g #
2018-10-18 14:47:00 +02:00
- gitbook fetch 3.2.3
2018-04-05 08:07:40 +02:00
- gitbook install
2016-06-27 09:33:28 +00:00
script:
2018-04-05 08:07:40 +02:00
- gitbook build . public
2019-02-20 11:52:52 +01:00
- gitbook pdf . modern-cmake.pdf
- cp modern-cmake.pdf public/modern-cmake.pdf
2016-06-27 09:33:28 +00:00
artifacts:
paths:
2017-04-03 13:33:48 +02:00
- public
2017-10-18 10:20:39 -04:00
expire_in: 1 week