Pipeline pa publicación de docu

This commit is contained in:
perro tuerto 2021-12-02 20:47:10 -06:00
parent ca306b26ab
commit 6e82922efa
1 changed files with 22 additions and 6 deletions

View File

@ -1,8 +1,24 @@
image: "rust:latest"
image: python:3.7-alpine
test:cargo:
test:
stage: test
script:
- rustc --version && cargo --version # Print version info for debugging
- rustup component add clippy
- cargo clippy -- -D warnings
- cargo test
- pip install -U sphinx
- mkdir -p public/{es,en}
- sphinx-build -b html ./docs/es/source/ public/es
- sphinx-build -b html ./docs/en/source/ public/en
rules:
- if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
pages:
stage: deploy
script:
- pip install -U sphinx
- mkdir -p public/{es,en}
- sphinx-build -b html ./docs/es/source/ public/es
- sphinx-build -b html ./docs/en/source/ public/en
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH