Skip to content
Snippets Groups Projects
.gitlab-ci.yml 491 B
Newer Older
v-lafeychine's avatar
v-lafeychine committed
default:
  image: vlafeychine/rust
  interruptible: true
  cache:
    paths:
      - .cache/cargo/
      - target/

variables:
  CARGO_HOME: "$CI_PROJECT_DIR/.cache/cargo/"
  RUSTFLAGS: "-D warnings"


stages: [ check, build, tests, docs ]

format:
  stage: check
  cache: []
  script:
    - cargo fmt --check

lint:
  stage: check
  script:
    - cargo clippy --all-targets --all-features

build:
  stage: build
  script:
    - cargo build

tests:
  stage: tests
  script:
    - cargo test