blob: 79d03178e48755b7ac166844ccec461f90f58d52 (
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
|
# Copyright (C) 2020 The Nitrocli Developers
# SPDX-License-Identifier: CC0-1.0
# The documentation for the contents of this file can be found at:
# https://docs.gitlab.com/ce/ci/yaml/README.html
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/rust/tags/
# The recipe for this docker image can be found at:
# https://github.com/rust-lang/docker-rust/blob/8bab191937fcf23569d3a3c31103c1c6f7f2947e/1.42.0/buster/Dockerfile
image: "rust:1.42.0"
build-test:cargo:
script:
- apt-get update
- apt-get install --assume-yes libudev-dev libhidapi-dev
- rustc --version && cargo --version
- cargo build --all --verbose
- cargo test --all --verbose
lint:clippy:
script:
- rustup component add clippy
- cargo clippy --all-targets --all-features -- -D warnings
lint:reuse:
script:
- apt-get update
- apt-get install --assume-yes python3-pip
- pip3 install reuse
- reuse lint
format:rustfmt:
script:
- rustup component add rustfmt
- cargo fmt --all -- --check
|