aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml10
1 files changed, 8 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f1a229f..019530a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,10 +7,16 @@ variables:
CARGO_INCREMENTAL: 0
test:
+ variables:
+ JQ_LIB_DIR: /usr/lib/x86_64-linux-gnu
stage: test
- script:
+ before_script:
- apt update && apt install libjq1 libjq-dev libonig-dev libonig5
- - JQ_LIB_DIR=/usr/lib/x86_64-linux-gnu cargo test --all --verbose
+ - rustup component add rustfmt
+ script:
+ - cargo fmt -- --check
+ - cargo build --tests
+ - cargo test --all
# pretty:
# stage: test