Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
test_ci
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alejandro Lopez Gestoso
test_ci
Commits
8f3a8924
Commit
8f3a8924
authored
2 years ago
by
Alejandro Lopez Gestoso
Browse files
Options
Downloads
Patches
Plain Diff
Update packaging-ci.yml
parent
9d48f2cb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packaging-ci.yml
+47
-19
47 additions, 19 deletions
packaging-ci.yml
with
47 additions
and
19 deletions
packaging-ci.yml
+
47
−
19
View file @
8f3a8924
<zwxecrtvbyhnujmik,olp.ñsawefsefgsedrgf
.build_package
:
&build_package
stages
:
-
build
-
update_package
-
update_reverse_dependencies
##### definitions #####
.build_package
:
&build_package
script
:
#- git submodule sync --recursive
#- git submodule update --init --recursive
...
...
@@ -19,7 +24,7 @@
apt -y install ${DEP[${i}]};
fi
done
-
mkdir -pv build
-
mkdir -pv build
-
cd build
-
cmake -DCMAKE_BUILD_TYPE=RELEASE -DCPACK_PACKAGE_VERSION=$TAG_VERSION ..
-
make package -j $(nproc)
...
...
@@ -41,17 +46,29 @@
-
git branch -D update_rdepends || echo "Update_depends branch already deleted"
-
git push origin --delete update_rdepends || echo "Update_depends branch already deleted"
.build_package_tag
:
&build_package_tag
###################
test_work
:
stage
:
build
script
:
-
echo "I work"
build_package_tag
:
stage
:
build
rules
:
-
if
:
$FROM_RDEPENDS_CI == "false" && $CI_COMMIT_TAG =~ /\d+\.[^a-zA-Z_\s]*\d+/ && $GITLAB_USER_NAME != "rdepends_token"
<<
:
*build_package
.update_repo_tag
:
&update_repo_tag
update_repo_tag
:
stage
:
update_package
rules
:
-
if
:
$FROM_RDEPENDS_CI == "false" && $CI_COMMIT_TAG =~ /\d+\.[^a-zA-Z_\s]*\d+/ && $GITLAB_USER_NAME != "rdepends_token"
<<
:
*update_repo
.modify_rdepends_ci
:
&modify_rdepends_ci
modify_rdepends_ci
:
stage
:
update_reverse_dependencies
rules
:
-
if
:
$FROM_RDEPENDS_CI == "false" && $CI_COMMIT_TAG =~ /\d+\.[^a-zA-Z_\s]*\d+/ && $GITLAB_USER_NAME != "rdepends_token"
script
:
...
...
@@ -88,37 +105,46 @@
-
git remote show origin
-
git push --set-upstream origin update_rdepends
.cleanup_branch_on_failure2
:
&cleanup_branch_on_failure2
cleanup_branch_on_failure2
:
stage
:
update_reverse_dependencies
rules
:
-
if
:
$FROM_RDEPENDS_CI == "false" && $CI_COMMIT_TAG =~ /\d+\.[^a-zA-Z_\s]*\d+/ && $GITLAB_USER_NAME != "rdepends_token"
when
:
on_failure
script
:
-
*cleanup
needs
:
[
modify-rdepends-ci
]
needs
:
[
modify_rdepends_ci
]
.trigger_rdepends_ci
:
&trigger_rdepends_ci
trigger_rdepends_ci
:
stage
:
update_reverse_dependencies
rules
:
-
if
:
$CI_COMMIT_BRANCH == "update_rdepends"
trigger
:
include
:
.rdepends_ci/rdepends_ci.yml
strategy
:
depend
.cleanup_branch
:
&cleanup_branch
cleanup_branch
:
stage
:
update_reverse_dependencies
rules
:
-
if
:
$CI_COMMIT_BRANCH == "update_rdepends"
script
:
-
*cleanup
needs
:
[
trigger
-
rdepends
-
ci
]
needs
:
[
trigger
_
rdepends
_
ci
]
.cleanup_branch_on_failure
:
&cleanup_branch_on_failure
cleanup_branch_on_failure
:
stage
:
update_reverse_dependencies
rules
:
-
if
:
$CI_COMMIT_BRANCH == "update_rdepends"
when
:
on_failure
script
:
-
*cleanup
needs
:
[
trigger
-
rdepends
-
ci
]
needs
:
[
trigger
_
rdepends
_
ci
]
.generate_new_tag
:
&generate_new_tag
generate_new_tag
:
stage
:
update_reverse_dependencies
rules
:
-
if
:
$FROM_RDEPENDS_CI == "true"
script
:
...
...
@@ -143,15 +169,17 @@
-
git remote show origin
-
git push origin $TAG_VERSION
.build_package_rdep
:
&build_package_rdep
build_package_rdep
:
stage
:
update_reverse_dependencies
rules
:
-
if
:
$FROM_RDEPENDS_CI == "true"
needs
:
[
generate
-
new
-
tag
]
needs
:
[
generate
_
new
_
tag
]
<<
:
*build_package
.update_repo_rdep
:
&update_repo_rdep
update_repo_rdep
:
stage
:
update_reverse_dependencies
rules
:
-
if
:
$FROM_RDEPENDS_CI == "true"
needs
:
[
build
-
package
-
rdep
]
needs
:
[
build
_
package
_
rdep
]
<<
:
*update_repo
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment