Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bodydynamics
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
mobile_robotics
wolf_projects
wolf_lib
plugins
bodydynamics
Commits
62a18b70
Commit
62a18b70
authored
10 months ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
added ci_tampleates
parent
83df2d25
No related branches found
No related tags found
1 merge request
!25
Draft: Resolve "Adapt to new sensor constructors in core"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.ci_templates/.install_bodydynamics.yml
+25
-0
25 additions, 0 deletions
.ci_templates/.install_bodydynamics.yml
.gitlab-ci.yml
+13
-27
13 additions, 27 deletions
.gitlab-ci.yml
with
38 additions
and
27 deletions
.ci_templates/.install_bodydynamics.yml
0 → 100644
+
25
−
0
View file @
62a18b70
.install_bodydynamics_script
:
-
cd ${CI_PROJECT_DIR}
# create 'ci_deps' folder (if not exists)
-
mkdir -pv ci_deps
# clone or pull
-
cd ${CI_PROJECT_DIR}/ci_deps
-
if [ -d bodydynamics ]; then
-
echo "directory bodydynamics exists"
-
cd bodydynamics
-
git fetch --all
-
git checkout $WOLF_BODYDYNAMICS_BRANCH
-
git pull
-
else
-
git clone -b $WOLF_BODYDYNAMICS_BRANCH ssh://git@gitlab.iri.upc.edu:2202/mobile_robotics/wolf_projects/wolf_lib/plugins/bodydynamics.git
-
cd bodydynamics
-
fi
# build and install
-
mkdir -pv build
-
cd build
-
cmake -DCMAKE_BUILD_TYPE=release -DBUILD_DEMOS=OFF -DBUILD_TESTS=OFF ..
-
make -j$(nproc)
-
make install
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
13
−
27
View file @
62a18b70
include
:
# core ci_templates
-
project
:
'
mobile_robotics/wolf_projects/wolf_lib/wolf'
ref
:
454-implementation-of-new-nodes-creation
#$WOLF_CORE_BRANCH
file
:
...
...
@@ -7,6 +8,11 @@ include:
-
'
.ci_templates/.clang_format.yml'
-
'
.ci_templates/.install_core.yml'
-
'
.ci_templates/.preliminaries.yml'
# imu ci_templates
-
project
:
'
mobile_robotics/wolf_projects/wolf_lib/plugins/imu'
ref
:
28-adapt-to-new-sensor-constructors-in-core
#$WOLF_IMU_BRANCH
file
:
-
'
.ci_templates/.install_imu.yml'
# RUN the pipeline if it is triggered:
# - manually from web
...
...
@@ -33,14 +39,15 @@ stages:
############ YAML ANCHORS ############
.print_variables_template
:
&print_variables_definition
# Print variables
-
echo $WOLF_CORE_BRANCH
-
echo $CI_COMMIT_BRANCH
-
echo $WOLF_
BODYDYNAMICS
_BRANCH
-
echo $WOLF_
CORE
_BRANCH
-
echo $WOLF_IMU_BRANCH
-
echo $WOLF_BODYDYNAMICS_BRANCH
.preliminaries_template
:
&preliminaries_definition
## OVERRIDE VARIABLES
-
export WOLF_CORE_BRANCH="454-implementation-of-new-nodes-creation"
-
export WOLF_IMU_BRANCH="28-adapt-to-new-sensor-constructors-in-core"
## PRINT VARIABLES
-
*print_variables_definition
...
...
@@ -51,24 +58,6 @@ stages:
## initialize build type as DEBUG
-
export BUILD_TYPE=debug
.install_wolfimu_template
:
&install_wolfimu_definition
-
cd ${CI_PROJECT_DIR}/ci_deps
-
if [ -d imu ]; then
-
echo "directory imu exists"
-
cd imu
-
git fetch --all
-
git checkout $WOLF_IMU_BRANCH
-
git pull
-
else
-
git clone -b $WOLF_IMU_BRANCH ssh://git@gitlab.iri.upc.edu:2202/mobile_robotics/wolf_projects/wolf_lib/plugins/imu.git
-
cd imu
-
fi
-
mkdir -pv build
-
cd build
-
cmake -DCMAKE_BUILD_TYPE=release -DBUILD_TESTS=OFF ..
-
make -j$(nproc)
-
make install
.build_and_test_template
:
&build_and_test_definition
-
cd $CI_PROJECT_DIR
-
mkdir -pv build
...
...
@@ -109,7 +98,7 @@ yaml_templates_generation:
-
*preliminaries_definition
-
!reference
[
.install_yamlschemacpp_script
]
-
!reference
[
.install_wolf_script
]
-
*install_wolfimu_definition
-
!reference
[
.install_imu_script
]
script
:
-
!reference
[
.generate_yaml_templates_script
]
...
...
@@ -131,8 +120,7 @@ build_and_test:bionic:
-
*preliminaries_definition
-
!reference
[
.install_yamlschemacpp_script
]
-
!reference
[
.install_wolf_script
]
-
*install_wolfimu_definition
-
ldconfig
# update links (shared libraries)
-
!reference
[
.install_imu_script
]
script
:
-
*build_and_test_definition
-
export BUILD_TYPE=release
...
...
@@ -156,8 +144,7 @@ build_and_test:focal:
-
*preliminaries_definition
-
!reference
[
.install_yamlschemacpp_script
]
-
!reference
[
.install_wolf_script
]
-
*install_wolfimu_definition
-
ldconfig
# update links (shared libraries)
-
!reference
[
.install_imu_script
]
script
:
-
*build_and_test_definition
-
export BUILD_TYPE=release
...
...
@@ -181,8 +168,7 @@ build_and_test:jammy:
-
*preliminaries_definition
-
!reference
[
.install_yamlschemacpp_script
]
-
!reference
[
.install_wolf_script
]
-
*install_wolfimu_definition
-
ldconfig
# update links (shared libraries)
-
!reference
[
.install_imu_script
]
script
:
-
*build_and_test_definition
-
export BUILD_TYPE=release
...
...
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