-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
54 lines (44 loc) · 781 Bytes
/
Copy path.gitlab-ci.yml
File metadata and controls
54 lines (44 loc) · 781 Bytes
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
43
44
45
46
47
48
49
50
51
52
53
54
image: "rust:latest"
stages:
- check
- test
- publish
- post-run
clean-code:
stage: check
script:
- rustup component add rustfmt-preview
- cargo fmt --all -- --check
allow_failure: true
check:
stage: check
script:
- cargo check
unittests:
stage: test
script:
- cargo test --release
benchmarktests:
stage: test
script:
- cargo bench
cratesio:
stage: publish
script:
- rm -r -f files
- cargo login $CARGO_LOGIN
- cargo package
- cargo publish
when: on_success
only:
refs:
- stable
allow_failure: true
clippy:
stage: post-run
script:
- rustup default nightly
- rustup update
- rustup component add clippy-preview
- cargo clippy -- -D clippy::pedantic
allow_failure: true