Renken
5c2f05901d
These two are too specific for a project like this and satisfying them is pretty much extra chore. The actual submodules and relevant cmake logic will be removed in the future as well, possibly as part of a migration towards meson.
62 lines
988 B
YAML
62 lines
988 B
YAML
image: debian
|
|
|
|
stages:
|
|
- analyse
|
|
- test
|
|
- deploy
|
|
|
|
variables:
|
|
GIT_SUBMODULE_STRATEGY: normal
|
|
|
|
cache:
|
|
paths:
|
|
- .venv/
|
|
|
|
.setup_build: &setup_build
|
|
- apt-get update
|
|
- apt-get dist-upgrade -y
|
|
- >
|
|
apt-get install --no-install-recommends -y
|
|
bash
|
|
build-essential
|
|
cmake
|
|
coreutils
|
|
findutils
|
|
git
|
|
grep
|
|
make
|
|
plantuml
|
|
python3
|
|
python3-pip
|
|
python3-venv
|
|
rsync
|
|
sed
|
|
# Convenient hack until this is fixed.
|
|
- ln -s /usr/bin/python3 /usr/bin/python
|
|
- python -m venv .venv
|
|
- . ./.venv/bin/activate
|
|
- python -m pip install -r requirements.txt
|
|
- mkdir build
|
|
- cd build
|
|
|
|
sphinx_html:
|
|
stage: test
|
|
needs: []
|
|
script:
|
|
- *setup_build
|
|
- cmake -DDOC:STRING=html ..
|
|
- make
|
|
artifacts:
|
|
paths:
|
|
- build/doc/html
|
|
|
|
pages:
|
|
stage: deploy
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
|
needs: ["sphinx_html"]
|
|
script:
|
|
- mv build/doc/html public
|
|
artifacts:
|
|
paths:
|
|
- public
|