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:
|
2020-08-03 09:17:36 -04:00
|
|
|
- apt-get update && apt-get install -y make cmake libboost-dev git
|
|
|
|
# We will install latest CMake, even though Ubuntu has a recent one
|
2018-04-05 08:07:40 +02:00
|
|
|
- mkdir -p $HOME/.local
|
2021-12-07 12:55:28 -05:00
|
|
|
- curl -s "https://cmake.org/files/v3.22/cmake-3.22.1-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:
|
2021-10-03 14:33:47 +00:00
|
|
|
image: node:14-buster
|
2016-06-27 09:33:28 +00:00
|
|
|
stage: deploy
|
2018-04-05 08:07:40 +02:00
|
|
|
only:
|
|
|
|
- master
|
|
|
|
cache:
|
2021-11-19 05:06:40 +00:00
|
|
|
key:
|
|
|
|
files:
|
|
|
|
- package-lock.json
|
2018-04-05 08:07:40 +02:00
|
|
|
paths:
|
|
|
|
- node_modules/
|
|
|
|
before_script:
|
2020-03-24 17:19:16 +00:00
|
|
|
- apt-get update && apt-get install -y calibre calibre-bin libxss1 libasound2
|
2021-11-18 23:52:52 -05:00
|
|
|
- npm install --unsafe-perm
|
2016-06-27 09:33:28 +00:00
|
|
|
script:
|
2020-03-24 17:19:16 +00:00
|
|
|
- npx gitbook build . public
|
2021-10-03 14:33:47 +00:00
|
|
|
- npx gitbook 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
|