-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
81 lines (71 loc) · 1.54 KB
/
.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
stages:
- fmt
- build
- tests
- quality
- publish
.rust_stable_lin64:
image: duniter/rust-x64-stable-ci:latest
tags:
- redshift
before_script:
- export PATH="$HOME/.cargo/bin:$PATH"
- rustup show
- rustc --version && cargo --version
.rust_stable_wasm32:
image: duniter/rust-wasm:latest
tags:
- redshift
before_script:
- export PATH="$HOME/.cargo/bin:$PATH"
- rustup show
- rustc --version && cargo --version
fmt:
extends: .rust_stable_lin64
stage: fmt
script:
- cargo fmt -- --version
- cargo fmt -- --check
build:linux64:stable:
extends: .rust_stable_lin64
stage: build
tags:
- redshift
script:
- RUSTFLAGS="-D warnings" cargo build --all-features
build:wasm32:stable:
extends: .rust_stable_wasm32
stage: build
tags:
- redshift
script:
- cargo build --all-features --target wasm32-unknown-unknown
tests:linux64:stable:
extends: .rust_stable_lin64
stage: tests
tags:
- redshift
script:
- cargo test --doc
- cargo tarpaulin --all --all-features --ignore-tests -iv --out Xml
- bash <(curl -s https://codecov.io/bash)
clippy:
extends: .rust_stable_lin64
stage: quality
script:
- cargo clippy -- -V
- cargo clippy --all --tests -- -D warnings --verbose
audit_dependencies:
extends: .rust_stable_lin64
stage: quality
script:
- cargo deny -V
- cargo deny check
publish:
extends: .rust_stable_lin64
stage: publish
rules:
- if: $CI_COMMIT_TAG
- when: never
script:
- bash "publish.sh"