blob: 019530ad3cea4892fa14cc7f60261a546fdb44fc (
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
|
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
script:
- cargo fmt -- --check
- cargo build --tests
- cargo test --all
# 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
|