-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
115 lines (106 loc) · 2 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
stages:
- vet
- test
- build
- pages
.vet-tools: &vet-tools
image: registry.gitlab.com/grauwoelfchen/portolan/rust-vet-tools:stable
except:
- tags
check:
stage: vet
<<: *vet-tools
before_script:
- rustc --version
- cargo --version
- mkdir -p .git/hooks
script:
- make vet:check
format:
stage: vet
<<: *vet-tools
before_script:
- rustc --version
- cargo --version
- cargo fmt --version
- mkdir -p .git/hooks
script:
- make vet:format
lint:
stage: vet
<<: *vet-tools
before_script:
- rustc --version
- cargo --version
- cargo clippy --version
- mkdir -p .git/hooks
script:
- make vet:lint
test-doc:
stage: test
<<: *vet-tools
before_script:
- rustc --version
- cargo --version
- kcov --version
- mkdir -p .git/hooks
script:
- make test:doc
test-unit:
stage: test
<<: *vet-tools
before_script:
- rustc --version
- cargo --version
- kcov --version
- mkdir -p .git/hooks
script:
- make coverage:lib
after_script:
- cat target/coverage/lib/index.js
build-debug:
stage: build
image: registry.gitlab.com/grauwoelfchen/portolan/rust:stable
before_script:
- rustc --version
- cargo --version
- mkdir -p .git/hooks
script:
- make build:debug
cache:
untracked: true
only:
- trunk
build-release:
stage: build
image: registry.gitlab.com/grauwoelfchen/portolan/rust:stable
before_script:
- rustc --version
- cargo --version
- mkdir -p .git/hooks
script:
- make build:release
cache:
untracked: true
only:
- tags
pages:
stage: pages
image: grauwoelfchen/rust:stable
before_script:
- rustc --version
- cargo --version
- rustdoc --version
script:
- make doc
- echo "<meta http-equiv=\"refresh\" content=\"0; url=adequate\">" \
> ./target/doc/index.html
- mkdir public
- cp -R ./target/doc/* public/
artifacts:
untracked: true
paths:
- public
only:
- tags
- trunk