2021-12-03 08:43:04 -06:00
|
|
|
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
|
2021-07-16 18:00:08 -05:00
|
|
|
|
2021-12-03 08:43:04 -06:00
|
|
|
build:docs:
|
|
|
|
image: python:3.7-alpine
|
2021-12-02 20:47:10 -06:00
|
|
|
stage: test
|
2021-07-16 18:00:08 -05:00
|
|
|
script:
|
2021-12-02 20:47:10 -06:00
|
|
|
- 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
|
2021-12-03 08:43:04 -06:00
|
|
|
|
2021-12-02 20:47:10 -06:00
|
|
|
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
|