Skip to content

Commit bdbd1ce

Browse files
committed
[CI] Automation: Sets up make.sh task to bump matrix stack versions
Removes automation namespace from rake, only task was the duplicated stack version update.
1 parent 559e9d3 commit bdbd1ce

File tree

4 files changed

+17
-53
lines changed

4 files changed

+17
-53
lines changed

.ci/make.sh

+16-6
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99
#
1010
# Targets:
1111
# ---------------------------
12-
# assemble <VERSION> : build client artefacts with version
13-
# bump <VERSION> : bump client internals to version
14-
# codegen <VERSION> : generate endpoints
15-
# docsgen <VERSION> : generate documentation
16-
# examplegen : generate the doc examples
17-
# clean : clean workspace
12+
# assemble <VERSION> : build client artefacts with version
13+
# bump <VERSION> : bump client internals to version
14+
# bumpmatrix <VERSION> : bump stack version in test matrix to version
15+
# codegen : generate endpoints
16+
# docsgen <VERSION> : generate documentation
17+
# examplegen : generate the doc examples
18+
# clean : clean workspace
1819
#
1920
# ------------------------------------------------------- #
2021

@@ -92,6 +93,15 @@ case $CMD in
9293
# VERSION is BRANCH here for now
9394
TASK_ARGS=("$VERSION")
9495
;;
96+
bumpmatrix)
97+
if [ -v $VERSION ]; then
98+
echo -e "\033[31;1mTARGET: bumpmatrix -> missing version parameter\033[0m"
99+
exit 1
100+
fi
101+
echo -e "\033[36;1mTARGET: bump stack in test matrix to version $VERSION\033[0m"
102+
TASK=bumpmatrix
103+
TASK_ARGS=("$VERSION")
104+
;;
95105
*)
96106
echo -e "\nUsage:"
97107
echo -e "\t Clean workspace:"

Rakefile

-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ def admin_client
4747
end
4848
end
4949

50-
import 'rake_tasks/automations.rake'
5150
import 'rake_tasks/elasticsearch_tasks.rake'
5251
import 'rake_tasks/test_tasks.rake'
5352
import 'rake_tasks/doc_generator.rake'

rake_tasks/automations.rake

-45
This file was deleted.

rake_tasks/unified_release_tasks.rake

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ namespace :unified_release do
116116
117117
$ rake unified_release:bump_matrix[42.0.0]
118118
DESC
119-
task :bump_matrix, :version do |_, args|
119+
task :bumpmatrix, :version do |_, args|
120120
abort('[!] Required argument [version] missing') unless (version = args[:version])
121121

122122
files = ['.ci/test-matrix.yml', '.github/workflows/main.yml', '.github/workflows/unified-release.yml']

0 commit comments

Comments
 (0)