nichijou/.gitlab-ci.yml

49 lines
813 B
YAML

image: python:3.9.16-slim-bullseye
stages:
- analyse
- test
- deploy
cache:
paths:
- .venv/
- /.cache/poetry
.setup_build: &setup_build
- apt-get update
- apt-get dist-upgrade -y
- >
apt-get install --no-install-recommends -y
curl
git
make
plantuml
python3
python3-distutils
rsync
- ln -s /usr/bin/python3 /usr/bin/python
- curl -sSL https://install.python-poetry.org | python3 - --version 1.4.1
- export PATH="/root/.local/bin:$PATH"
doc:
stage: test
needs: []
script:
- *setup_build
- poetry install -n
- make
artifacts:
paths:
- build/doc
pages:
stage: deploy
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
needs: ["doc"]
script:
- mv build/doc public
artifacts:
paths:
- public