aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
blob: a3169df8de56b1d186cd9f6cf3cd18a5d1d1ff64 (plain) (blame)
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
stages:
  - build

variables:
  RUSTFLAGS: "-D warnings"
  CARGO_HOME: cache

cache:
  paths:
    - cache/
    - target/

rust-latest:
  stage: build
  image: rust:latest
  script:
    - cargo build --locked
    - cargo test --locked

rust-nightly:
  stage: build
  image: rustlang/rust:nightly
  script:
    - cargo build --locked
    - cargo test --locked
  allow_failure: true