image: "rust:1.34.0" variables:
CARGO_HOME: $CI_PROJECT_DIR/.cache/cargo
cache:
paths:
- $CARGO_HOME
no_std:
stage: build
before_script:
- rustc --version && cargo --version
script:
- cargo build --all --verbose
- cargo test --all --verbose
with_std:
stage: build
before_script:
- rustc --version && cargo --version
script:
- cargo build --all --verbose --all-features
- cargo test --all --verbose --all-features
generate-docs:
image: "rustlang/rust:nightly-slim" stage: build
script:
- cargo doc --all --verbose --all-features
- echo '<meta http-equiv="refresh" content="0; url=accel_stepper/index.html" /> ' > target/doc/index.html
artifacts:
paths:
- target/doc
pages:
stage: deploy
script:
- cp -r target/doc public
artifacts:
paths:
- public
only:
- master