Merge branch 'NikaZhenya/tiempo-rs-docs' into docs

This commit is contained in:
Abraham Toriz 2021-12-03 08:43:17 -06:00
commit 149b5d372f
No known key found for this signature in database
GPG Key ID: D5B4A746DB5DD42A
1 changed files with 25 additions and 2 deletions

View File

@ -1,8 +1,31 @@
image: "rust:latest"
test:cargo:
image: rust:latest
script:
- rustc --version && cargo --version # Print version info for debugging
- rustup component add clippy
- cargo clippy -- -D warnings
- cargo test
build:docs:
image: python:3.7-alpine
stage: test
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
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