-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
42 lines (36 loc) · 973 Bytes
/
.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
37
38
39
40
41
42
fmt:
# Use a third-party repo since the official repo doesn't include tags.
# https://github.com/rust-lang-nursery/docker-rust-nightly/issues/3
image: instrumentisto/rust:nightly-2019-08-15
before_script:
- rustup component add rustfmt-preview
script:
- cargo fmt -- --check
# Each package is checked separately because of
# https://github.com/rust-lang/cargo/issues/5364
.check-crate:
image: rust:1.37
before_script:
- rustup component add clippy
script:
- cargo clippy --manifest-path "$crate_dir"/Cargo.toml --all-targets --features strict
check-aether:
extends: .check-crate
variables:
crate_dir: crates/aether
check-d3d11:
extends: .check-crate
variables:
crate_dir: crates/d3d11
check-darksiders1-sys:
extends: .check-crate
variables:
crate_dir: crates/darksiders1-sys
check-horseman:
extends: .check-crate
variables:
crate_dir: crates/horseman
test:
image: rust:1.37
script:
- cargo test