forked from paritytech/parity-scale-codec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
123 lines (109 loc) · 2.43 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
116
117
118
119
120
121
122
123
# .gitlab-ci.yml
#
stages:
- test
- build
image: parity/rust-builder:latest
variables:
GIT_STRATEGY: fetch
CARGO_HOME: "/ci-cache/${CI_PROJECT_NAME}/cargo/${CI_JOB_NAME}"
SCCACHE_DIR: "/ci-cache/${CI_PROJECT_NAME}/sccache"
CARGO_INCREMENTAL: 0
CI_SERVER_NAME: "GitLab CI"
#### stage: test
test-rust-stable:
stage: test
script:
- time cargo test --verbose --all --features bit-vec,generic-array,derive
- sccache -s
only:
- triggers
- tags
- master
- schedules
- web
- /^[0-9]+$/
tags:
- linux-docker
test-rust-stable-no_derive:
stage: test
script:
- time cargo test --verbose --features bit-vec,generic-array
- sccache -s
only:
- triggers
- tags
- master
- schedules
- web
- /^[0-9]+$/
tags:
- linux-docker
check-rust-stable-no_derive_no_std_full:
stage: test
script:
- time cargo check --verbose --no-default-features --features bit-vec,generic-array,full
- sccache -s
only:
- triggers
- tags
- master
- schedules
- web
- /^[0-9]+$/
tags:
- linux-docker
check-rust-stable-no_derive_no_std:
stage: test
script:
- time cargo check --verbose --no-default-features --features bit-vec,generic-array
- sccache -s
only:
- triggers
- tags
- master
- schedules
- web
- /^[0-9]+$/
tags:
- linux-docker
check-rust-stable-no_derive_full:
stage: test
script:
- time cargo check --verbose --features bit-vec,generic-array,full
- sccache -s
only:
- triggers
- tags
- master
- schedules
- web
- /^[0-9]+$/
tags:
- linux-docker
bench-rust-nightly:
stage: test
script:
- time cargo +nightly bench --features bit-vec,generic-array,derive
- sccache -s
only:
- triggers
- tags
- master
- schedules
- web
- /^[0-9]+$/
tags:
- linux-docker
#### stage: build
build-linux-ubuntu-amd64:
stage: build
script:
- cargo build --verbose --release --features bit-vec,generic-array,derive
- sccache -s
only:
- master
- tags
- web
tags:
- linux-docker