forked from ltentrup/caqe
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
36 lines (31 loc) · 1.13 KB
/
.gitlab-ci.yml
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
image: "rust:latest"
# Install additional packages, like a C compiler and cmake
#
# Notes:
# * xxd is needed to build cryptominisat
before_script:
- apt-get update -yqq
- apt-get install -yqq --no-install-recommends build-essential cmake xxd
- rustup component add clippy-preview rustfmt-preview
# Use cargo to test the project
cargo:test:
script:
- rustc --version && cargo --version # Print version info for debugging
- cargo test --all --all-features --verbose
# Use cargo to check the source code formatting
cargo:check-format:
script:
- rustc --version && cargo --version # Print version info for debugging
- cargo fmt --all --verbose -- --check
# Use cargo to run clippy (Rust linter)
cargo:clippy:
script:
- rustc --version && cargo --version # Print version info for debugging
- cargo clippy --all-features -- -D warnings
# Use cargo to test the project on nightly toolchain
# cargo:test-nightly:
# image: rustlang/rust:nightly
# script:
# - rustc --version && cargo --version # Print version info for debugging
# - cargo test --all --all-features --verbose
# allow_failure: true