@@ -19,29 +19,30 @@ variables:
19
19
GIT_STRATEGY : fetch
20
20
CARGO_HOME : " /ci-cache/${CI_PROJECT_NAME}/cargo/${CI_JOB_NAME}"
21
21
SCCACHE_DIR : " /ci-cache/${CI_PROJECT_NAME}/sccache"
22
- SCCACHE_CACHE_SIZE : 50G
23
22
CI_SERVER_NAME : " GitLab CI"
24
23
DOCKER_OS : " debian:stretch"
25
24
ARCH : " x86_64"
26
25
27
26
28
-
29
27
.collect-artifacts : &collect-artifacts
30
28
artifacts :
31
29
name : " ${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
32
30
when : on_success
33
31
expire_in : 7 days
34
32
paths :
35
- - artifacts/
36
-
37
-
33
+ - artifacts/
38
34
39
35
.kubernetes-build : &kubernetes-build
40
36
tags :
41
37
- kubernetes-parity-build
42
38
environment :
43
39
name : parity-build
44
40
41
+ .compiler_info : &compiler_info
42
+ before_script :
43
+ - rustup show
44
+ - cargo --version
45
+ - sccache -s
45
46
46
47
47
48
# ### stage: merge-test
@@ -64,6 +65,7 @@ check-merge-conflict:
64
65
65
66
test-linux-stable : &test
66
67
stage : test
68
+ << : *compiler_info
67
69
variables :
68
70
RUST_TOOLCHAIN : stable
69
71
# Enable debug assertions since we are running optimized builds for testing
@@ -81,37 +83,31 @@ test-linux-stable: &test
81
83
except :
82
84
variables :
83
85
- $DEPLOY_TAG
84
- before_script :
85
- - sccache -s
86
- - ./scripts/build.sh
87
86
script :
87
+ - ./scripts/build.sh
88
88
- time cargo test --all --release --verbose --locked
89
89
- sccache -s
90
90
91
91
92
-
93
-
94
-
95
- .build-only : &build-only
92
+ .build-only : &build-only
96
93
only :
97
94
- master
98
95
- tags
99
96
- web
100
97
101
98
102
- build-linux-release : &build
99
+ build-linux-release : &build
103
100
stage : build
104
101
<< : *collect-artifacts
105
102
<< : *build-only
103
+ << : *compiler_info
106
104
except :
107
105
variables :
108
106
- $DEPLOY_TAG
109
107
tags :
110
108
- linux-docker
111
- before_script :
112
- - sccache -s
113
- - ./scripts/build.sh
114
109
script :
110
+ - ./scripts/build.sh
115
111
- time cargo build --release --verbose
116
112
- mkdir -p ./artifacts
117
113
- mv ./target/release/polkadot ./artifacts/.
@@ -165,7 +161,7 @@ publish-docker-release:
165
161
- test -z "${VERSION}" && exit 1
166
162
- cd ./artifacts
167
163
- docker build
168
- --build-arg VCS_REF="${CI_COMMIT_SHORT_SHA }"
164
+ --build-arg VCS_REF="${CI_COMMIT_SHA }"
169
165
--build-arg BUILD_DATE="$(date -u '+%Y-%m-%dT%H:%M:%SZ')"
170
166
--tag $CONTAINER_IMAGE:$VERSION
171
167
--tag $CONTAINER_IMAGE:$EXTRATAG .
@@ -258,22 +254,22 @@ publish-s3-release:
258
254
deploy-ew3 :
259
255
<< : *deploy-cibuild
260
256
environment :
261
- name : parity-prod-ew3
257
+ name : parity-prod-ew3
262
258
263
259
deploy-ue1 :
264
260
<< : *deploy-cibuild
265
261
environment :
266
- name : parity-prod-ue1
262
+ name : parity-prod-ue1
267
263
268
264
deploy-ew3-tag :
269
265
<< : *deploy-tag
270
266
environment :
271
- name : parity-prod-ew3
267
+ name : parity-prod-ew3
272
268
273
269
deploy-ue1-tag :
274
270
<< : *deploy-tag
275
271
environment :
276
- name : parity-prod-ue1
272
+ name : parity-prod-ue1
277
273
278
274
279
275
0 commit comments