.gitlab-ci.yml 450 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34

default:
  image: "rust:latest"

stages:
  - before_script
  - doc
  - build
  - test
  - deploy

variables:
  CARGO_HOME: $CI_PROJECT_DIR/cargo

test:
  image: rustlang/rust:nightly
  stage: test
  script:
    - cargo version

build:
  image: rustlang/rust:nightly
  script:
    - cargo build

cache:
  paths:
    - cargo/
    - target/

before_script:
  - cargo update
  - rustup component add rust-src
  - rustup component add llvm-tools-preview