aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: c34e8f36a4202733363ac14a32d3e8508522264f (plain)
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
35
36
37
38
image: 'rust:latest'

stages:
  - test

variables:
  CARGO_INCREMENTAL: 0 

test:
  variables:
    JQ_LIB_DIR: /usr/lib/x86_64-linux-gnu
  stage: test
  before_script:
    - apt update && apt install libjq1 libjq-dev libonig-dev libonig5
    - rustup component add rustfmt
    - rustup component add clippy
  script:
    - cargo fmt -- --check
    - cargo build --all-features --tests
    - cargo clippy
    - cargo clippy --features jq
    - cargo clippy --tests
    - cargo test --all-features

# pretty:
#   stage: test
#   allow_failure: true
#   before_script:
#     - rustup component add rustfmt
#   script:
#     - cargo fmt -- --check

# petty:
#   stage: test
#   before_script:
#     - rustup component add clippy
#   script:
#     - cargo clippy --all