forked from goethe-tcs/breaking-the-cycle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
80 lines (71 loc) · 1.82 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
variables:
GIT_SUBMODULE_STRATEGY: normal
stages:
- primary
- extras
- deploy
cargo-test:
image: gitlab.ae.cs.uni-frankfurt.de:5001/ae-ci/aeffm-rust-nightly
stage: primary
script:
- cargo test
- cargo test --all-features
- cargo build --all-features
cargo-test-deny-warnings:
image: gitlab.ae.cs.uni-frankfurt.de:5001/ae-ci/aeffm-rust-nightly
stage: primary
variables:
RUSTFLAGS: "-D warnings"
script:
- cargo test
- cargo test --all-features
- cargo build --all-features
cargo-test-release:
image: gitlab.ae.cs.uni-frankfurt.de:5001/ae-ci/aeffm-rust-nightly
stage: extras
script:
- cargo test --release
- cargo test --release --all-features
- cargo build --release --all-features
cargo-clippy:
image: gitlab.ae.cs.uni-frankfurt.de:5001/ae-ci/aeffm-rust-nightly
stage: primary
script:
- cargo clippy --all-features -- -D clippy::all
cargo-format:
image: gitlab.ae.cs.uni-frankfurt.de:5001/ae-ci/aeffm-rust-nightly
stage: extras
script:
- cargo fmt --check
coverage:
image: gitlab.ae.cs.uni-frankfurt.de:5001/ae-ci/aeffm-rust-nightly
stage: extras
coverage: '/^\d+.\d+% coverage/'
script:
- cargo tarpaulin -t 300 --all-features -o xml
artifacts:
reports:
cobertura: cobertura.xml
pages:
image: gitlab.ae.cs.uni-frankfurt.de:5001/ae-ci/aeffm-rust-nightly
stage: deploy
script:
- mkdir -p public/coverage
- cargo tarpaulin -t 300 --all-features -o html
- mv tarpaulin-report.html public/coverage/index.html
- cargo doc --no-deps
- mv target/doc public/doc
artifacts:
paths:
- public
only:
- master
documentation:
image: gitlab.ae.cs.uni-frankfurt.de:5001/ae-ci/aeffm-rust-nightly
stage: deploy
variables:
RUSTDOCFLAGS: "-D warnings"
script:
- cargo doc --no-deps
except:
- master