blob: bc65171f616af3fb0c6155c1ac055dc099adb576 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
image: "rust"
tests:
before_script:
- rustup install nightly
script:
- cargo +nightly test
format:
before_script:
- rustup install nightly
- rustup +nightly component add rustfmt
script:
- cargo +nightly fmt -- --check
clippy:
before_script:
- rustup install nightly
- rustup +nightly component add clippy
script:
- if cargo +nightly clippy 2>&1 | tee /dev/stderr | egrep "^(warning|error):" >/dev/null ; then exit 1 ; else exit 0 ; fi
|