@@ -27,14 +27,38 @@ workflow:
27
27
variables :
28
28
CONAN_REMOTE : " artifactory"
29
29
30
+ # ################
31
+ # Extend blocks #
32
+ # ################
33
+
34
+ .before-script/download-artifacts :
35
+ before_script :
36
+ - poetry run python run-ci.py download-artifacts --project-id=$UPSTREAM_PROJECT_ID --pipeline-id=$UPSTREAM_PIPELINE_ID --job-name=$UPSTREAM_JOB_NAME
37
+
38
+ .before-script/python :
39
+ before_script :
40
+ - poetry run python -m pip install --upgrade pip
41
+ - poetry install
42
+
43
+ .before-script/rust :
44
+ before_script :
45
+ - cargo --version
46
+ - rustc --version
47
+
48
+ .release-artifacts :
49
+ artifacts :
50
+ paths :
51
+ - native/
52
+ expire_in : 7 days
53
+
30
54
# ##########
31
55
# Default #
32
56
# ##########
33
57
34
58
default :
35
59
before_script :
36
- - poetry run python -m pip install --upgrade pip
37
- - poetry install
60
+ - !reference [.before-script/ python, before_script]
61
+ - !reference [.before-script/rust, before_script]
38
62
image : registry.gitlab.com/tankerhq/docker/sdk-rust:latest
39
63
40
64
# #########
@@ -47,26 +71,6 @@ stages:
47
71
- bridge-check
48
72
- deploy
49
73
50
- # ############################
51
- # Default settings override #
52
- # ############################
53
-
54
- .before-script/download-artifacts :
55
- before_script :
56
- - poetry run python -m pip install --upgrade pip
57
- - poetry install
58
- - poetry run python run-ci.py download-artifacts --project-id=$UPSTREAM_PROJECT_ID --pipeline-id=$UPSTREAM_PIPELINE_ID --job-name=$UPSTREAM_JOB_NAME
59
-
60
- # ################
61
- # Extend blocks #
62
- # ################
63
-
64
- .release-artifacts :
65
- artifacts :
66
- paths :
67
- - native/
68
- expire_in : 7 days
69
-
70
74
# ###########
71
75
# profiles #
72
76
# ###########
@@ -76,16 +80,17 @@ stages:
76
80
TANKER_PROFILES : --profile linux-x86_64
77
81
78
82
.profiles/windows :
83
+ extends :
84
+ - .tags/windows
79
85
before_script :
80
- - poetry run python -m pip install --upgrade pip
81
- - poetry install
86
+ - !reference [default, before_script]
82
87
# Powershell doesn't split env variable when expanding it.
83
88
# So, we are using the native syntax to create an array, which will be correctly expanded.
84
89
- $TANKER_PROFILES = "--profile", "windows-x86_64", "shared"
85
90
86
91
.profiles/windows/artifacts :
87
92
extends :
88
- - .tags /windows
93
+ - .profiles /windows
89
94
before_script :
90
95
- !reference [.profiles/windows, before_script]
91
96
- !reference [.before-script/download-artifacts, before_script]
@@ -148,7 +153,6 @@ prepare/deployed/windows:
148
153
extends :
149
154
- .profiles/windows
150
155
- .prepare
151
- tags : !reference [.tags/windows, tags]
152
156
153
157
prepare/deployed/android :
154
158
extends :
@@ -267,7 +271,6 @@ check/deployed-native/windows:
267
271
- .check/deployed-native
268
272
needs :
269
273
- prepare/deployed/windows
270
- tags : !reference [.tags/windows, tags]
271
274
272
275
check/deployed-native/android :
273
276
extends :
@@ -307,8 +310,9 @@ check/deployed-native/ios/arm:
307
310
308
311
.check/downstream :
309
312
stage : check
310
- extends :
311
- - .before-script/download-artifacts
313
+ before_script :
314
+ - !reference [default, before_script]
315
+ - !reference [.before-script/download-artifacts, before_script]
312
316
dependencies : []
313
317
script :
314
318
- poetry run python run-ci.py --isolate-conan-user-home --remote $CONAN_REMOTE prepare --use-tanker=upstream $TANKER_PROFILES
@@ -326,7 +330,6 @@ check/downstream/windows:
326
330
- .rules/check/downstream/windows
327
331
- .check/downstream
328
332
- .profiles/windows/artifacts
329
- tags : !reference [.tags/windows, tags]
330
333
331
334
check/downstream/android :
332
335
extends :
@@ -374,8 +377,9 @@ check/downstream/macos/arm:
374
377
bridge-dotenv :
375
378
stage : bridge-check
376
379
inherit :
377
- default : # Skip docker image
378
- - " before_script"
380
+ default : [] # Skip docker image
381
+ before_script :
382
+ - !reference [.before-script/python, before_script]
379
383
rules :
380
384
- !reference [ .rules/push-master-or-feat, rules ]
381
385
- !reference [ .rules/check/downstream/ios-or-android, rules ]
0 commit comments