Pipeline pa publicación de docu
This commit is contained in:
parent
ca306b26ab
commit
6e82922efa
|
@ -1,8 +1,24 @@
|
||||||
image: "rust:latest"
|
image: python:3.7-alpine
|
||||||
|
|
||||||
test:cargo:
|
test:
|
||||||
|
stage: test
|
||||||
script:
|
script:
|
||||||
- rustc --version && cargo --version # Print version info for debugging
|
- pip install -U sphinx
|
||||||
- rustup component add clippy
|
- mkdir -p public/{es,en}
|
||||||
- cargo clippy -- -D warnings
|
- sphinx-build -b html ./docs/es/source/ public/es
|
||||||
- cargo test
|
- 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
|
||||||
|
|
Loading…
Reference in New Issue