-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
29 lines (25 loc) · 918 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
# This file is a template, and might need editing before it works on your project.
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/rust/tags/
image: "rust:latest"
variables:
GIT_SUBMODULE_STRATEGY: recursive
.run_test: &run_test
script:
- rustup component add rustfmt clippy
- rustup --version && rustc --version && cargo --version
- cargo fmt --all -- --check
- cargo clippy --workspace --all-targets --all-features --verbose -- -D warnings
- cargo test --workspace --verbose
# Use cargo to test the project
test:stable:
<<: *run_test
before_script:
- apt-get update
- apt-get install -y --no-install-recommends cmake llvm-dev libclang-dev clang
test:beta:
<<: *run_test
before_script:
- apt-get update
- apt-get install -y --no-install-recommends cmake llvm-dev libclang-dev clang
- rustup default beta