@@ -5,16 +5,15 @@ stages:
5
5
- optional
6
6
7
7
image : ${REGISTRY}/parity-ci-linux:latest
8
+
8
9
variables :
9
10
GIT_STRATEGY : fetch
10
11
GIT_SUBMODULE_STRATEGY : recursive
11
12
CI_SERVER_NAME : " GitLab CI"
12
13
CARGO_HOME : " /ci-cache/${CI_PROJECT_NAME}/cargo/${CI_JOB_NAME}"
13
- SCCACHE_DIR : " /ci-cache/${CI_PROJECT_NAME}/sccache"
14
14
CARGO_TARGET : x86_64-unknown-linux-gnu
15
15
REGISTRY : registry.parity.io/parity/infrastructure/scripts
16
16
17
-
18
17
.releaseable_branches : # list of git refs for building GitLab artifacts (think "pre-release binaries")
19
18
only : &releaseable_branches
20
19
- stable
@@ -38,22 +37,6 @@ variables:
38
37
before_script :
39
38
- rustup show
40
39
- cargo --version
41
- - SCCACHE_ERROR_LOG=/builds/parity/parity-ethereum/sccache_debug.log
42
- RUST_LOG=sccache=debug
43
- sccache --start-server
44
- - sccache -s
45
- after_script :
46
- # sccache debug info
47
- - if test -e sccache_debug.log;
48
- then
49
- echo "_____All crate-types:_____";
50
- grep 'parse_arguments.*--crate-type' sccache_debug.log | sed -re 's/.*"--crate-type", "([^"]+)".*/\1/' | sort | uniq -c;
51
- echo "_____Non-cacheable reasons:_____";
52
- grep CannotCache sccache_debug.log | sed -re 's/.*CannotCache\((.+)\).*/\1/' | sort | uniq -c;
53
- else
54
- echo "_____No logs from sccache_____";
55
- exit 0;
56
- fi
57
40
tags :
58
41
- linux-docker
59
42
@@ -63,7 +46,6 @@ variables:
63
46
<< : *collect_artifacts
64
47
script :
65
48
- scripts/gitlab/build-linux.sh
66
- - sccache -s
67
49
after_script :
68
50
- mkdir -p tools
69
51
- cp -r scripts/docker/hub/* ./tools
@@ -81,21 +63,21 @@ cargo-check 0 3:
81
63
<< : *docker-cache-status
82
64
script :
83
65
- time cargo check --target $CARGO_TARGET --locked --no-default-features --verbose --color=always
84
- - sccache -s
66
+ - sccache --stop-server
85
67
86
68
cargo-check 1 3 :
87
69
stage : test
88
70
<< : *docker-cache-status
89
71
script :
90
72
- time cargo check --target $CARGO_TARGET --locked --manifest-path util/io/Cargo.toml --no-default-features --verbose --color=always
91
- - sccache -s
73
+ - sccache --stop-server
92
74
93
75
cargo-check 2 3 :
94
76
stage : test
95
77
<< : *docker-cache-status
96
78
script :
97
79
- time cargo check --target $CARGO_TARGET --locked --manifest-path util/io/Cargo.toml --features "mio" --verbose --color=always
98
- - sccache -s
80
+ - sccache --stop-server
99
81
100
82
cargo-check-evmbin :
101
83
stage : test
@@ -123,37 +105,32 @@ validate-chainspecs:
123
105
<< : *docker-cache-status
124
106
script :
125
107
- ./scripts/gitlab/validate-chainspecs.sh
126
- - sccache -s
127
108
128
109
test-cpp :
129
110
stage : build
130
111
<< : *docker-cache-status
131
112
script :
132
113
- ./scripts/gitlab/test-cpp.sh
133
- - sccache -s
134
114
135
115
test-linux :
136
116
stage : build
137
117
<< : *docker-cache-status
138
118
script :
139
119
- ./scripts/gitlab/test-linux.sh stable
140
- - sccache -s
141
120
142
121
test-linux-beta :
143
122
stage : build
144
123
only : *releaseable_branches
145
124
<< : *docker-cache-status
146
125
script :
147
126
- ./scripts/gitlab/test-linux.sh beta
148
- - sccache -s
149
127
150
128
test-linux-nightly :
151
129
stage : build
152
130
only : *releaseable_branches
153
131
<< : *docker-cache-status
154
132
script :
155
133
- ./scripts/gitlab/test-linux.sh nightly
156
- - sccache -s
157
134
allow_failure : true
158
135
159
136
build-android :
@@ -234,7 +211,7 @@ publish-docker:
234
211
DOCKER_DRIVER : overlay2
235
212
GIT_STRATEGY : none
236
213
# DOCKERFILE: tools/Dockerfile
237
- # CONTAINER_IMAGE: parity/parity
214
+ # CONTAINER_IMAGE: parity/parity
238
215
script :
239
216
- ./tools/publish-docker.sh
240
217
tags :
@@ -350,7 +327,7 @@ publish-release-awss3-nightly: &publish-release-awss3
350
327
- linux-docker
351
328
352
329
publish-release-awss3-manually :
353
- << : *publish-release-awss3
330
+ << : *publish-release-awss3
354
331
only : *releaseable_branches
355
332
when : manual
356
333
0 commit comments