tiempo-rs/.gitlab-ci.yml

28 lines
585 B
YAML
Raw Normal View History

2021-12-03 08:57:22 -06:00
stages:
- test
- build
- deploy
2021-12-03 08:43:04 -06:00
test:cargo:
image: rust:latest
2021-12-03 08:57:22 -06:00
stage: test
2021-12-03 08:43:04 -06:00
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-02 20:47:10 -06:00
pages:
2021-12-03 08:57:22 -06:00
image: python:3.8-alpine
2021-12-02 20:47:10 -06:00
stage: deploy
script:
2021-12-03 08:57:22 -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
2021-12-02 20:47:10 -06:00
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH