aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 4394a3e2f2d33a97840bcf2d16b75fbd3dbd2f6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
image: "rust"

tests:
  script:
    - cargo test --all-features

format:
  before_script:
    - rustup component add rustfmt
  script:
    - cargo fmt -- --check

clippy:
  before_script:
    - rustup component add clippy
  script:
    - if cargo clippy --all-features 2>&1 | tee /dev/stderr | egrep "^(warning|error):" >/dev/null ; then exit 1 ; else exit 0 ; fi