pgLab/.gitlab-ci.yml
eelke c748b267a6 fix pipeline
installing python packages without gcc seems to be very hard
also fix pip caching
2022-09-04 13:28:08 +02:00

39 lines
603 B
YAML

image: python:3.7-alpine
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/pip-cache"
cache:
paths:
- "$PIP_CACHE_DIR"
key: "$CI_PROJECT_ID"
.install_sphinx:
before_script:
- apk add gcc musl-dev
- pip install --cache-dir "$PIP_CACHE_DIR" -U -r docs/requirements.txt
test-docs:
stage: test
extends:
- .install_sphinx
script:
- sphinx-build -b html docs userdocs
artifacts:
paths:
- userdocs
only:
- branches
deploy:
stage: deploy
extends:
- .install_sphinx
script:
- sphinx-build -b html docs public
artifacts:
paths:
- public
only:
- tags