cargo-test:
image: rust:latest
variables:
CARGO_HOME: "$CI_PROJECT_DIR/cache/"
cache:
paths:
- "cache"
before_script:
- rustc -V
script:
- cargo test
cargo-lint:
- rustup component add clippy
- cargo clippy
pages:
image: node:lts-stretch
- site/node_modules/
- (cd site && yarn install)
- (cd site && yarn run hexo generate)
artifacts:
- public
only:
- master