accel-stepper 0.1.0

A library for controlling stepper motors.
Documentation
image: "rust:1.34.0" # Required for TryFrom
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" # nightly gives inter-doc links
  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