Update .gitlab-ci.yml

This commit is contained in:
Grégory Lebreton 2023-02-08 12:36:21 +00:00
parent d7210711ea
commit 619e80bd5f

View File

@ -1,42 +1,25 @@
# image: python:3.9.2-alpine
image: python:3.9.2-alpine
# before_script:
# - apk update && apk add git
# - pip install -r requirements.txt
before_script:
- apk update && apk add git
- pip install -r requirements.txt
# test:
# stage: test
# script:
# - mkdocs build --strict --verbose --site-dir test
# artifacts:
# paths:
# - test
# except:
# - master
# pages:
# stage: deploy
# script:
# - mkdocs build --strict --verbose
# artifacts:
# paths:
# - public
# only:
# - master
image: python:3.8-buster
before_script:
- pip install -r requirements.txt
variables:
GIT_DEPTH: 0
pages:
stage: deploy
script:
- mkdocs build --strict --verbose
artifacts:
paths:
- public
only:
- master
test:
stage: test
script:
- mkdocs build --verbose --site-dir test
artifacts:
paths:
- test
except:
- master
pages:
stage: deploy
script:
- mkdocs build --strict --verbose
artifacts:
paths:
- public
only:
- master