Skip to content
Snippets Groups Projects
Commit f944dbae authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

Merge branch '454-implementation-of-new-nodes-creation' of...

Merge branch '454-implementation-of-new-nodes-creation' of ssh://gitlab.iri.upc.edu:2202/mobile_robotics/wolf_projects/wolf_lib/wolf into 454-implementation-of-new-nodes-creation
parents ae712a59 52b3846c
No related branches found
No related tags found
1 merge request!448Draft: Resolve "Implementation of new nodes creation"
Pipeline #12455 failed
...@@ -47,6 +47,9 @@ stages: ...@@ -47,6 +47,9 @@ stages:
# update apt # update apt
- apt-get update - apt-get update
# create 'ci_deps' folder (if not exists)
- mkdir -pv ci_deps
.license_header_template: &license_header_definition .license_header_template: &license_header_definition
- cd $CI_PROJECT_DIR - cd $CI_PROJECT_DIR
...@@ -83,13 +86,31 @@ stages: ...@@ -83,13 +86,31 @@ stages:
- echo "No changes, nothing to commit!" - echo "No changes, nothing to commit!"
- fi - fi
.install_yamlschemacpp_template: &install_yamlschemacpp_definition
- cd ${CI_PROJECT_DIR}/ci_deps
- if [ -d yaml-schema-cpp ]; then
- echo "directory yaml-schema-cpp exists"
- cd yaml-schema-cpp
- git checkout main
- git pull
- else
- git clone -b main ssh://git@gitlab.iri.upc.edu:2202/labrobotica/algorithms/yaml-schema-cpp.git
- cd yaml-schema-cpp
- fi
- mkdir -pv build
- cd build
- cmake -DCMAKE_BUILD_TYPE=release -DBUILD_TESTS=OFF ..
- make -j$(nproc)
- make install
- ldconfig
.build_and_test_template: &build_and_test_definition .build_and_test_template: &build_and_test_definition
- cd $CI_PROJECT_DIR - cd $CI_PROJECT_DIR
- mkdir -pv build - mkdir -pv build
- cd build - cd build
- cmake -DCMAKE_BUILD_TYPE=release -DBUILD_DEMOS=ON -DBUILD_TESTS=ON .. - cmake -DCMAKE_BUILD_TYPE=release -DBUILD_DEMOS=ON -DBUILD_TESTS=ON ..
- make -j$(nproc) - make -j$(nproc)
- ctest -j$(nproc) - ctest -j$(nproc) --output-on-failure
# run demos # run demos
- ../bin/hello_wolf - ../bin/hello_wolf
- ../bin/hello_wolf_autoconf - ../bin/hello_wolf_autoconf
...@@ -111,6 +132,8 @@ build_and_test:bionic: ...@@ -111,6 +132,8 @@ build_and_test:bionic:
image: labrobotica/wolf_deps:18.04 image: labrobotica/wolf_deps:18.04
script: script:
- *print_variables_definition - *print_variables_definition
- *preliminaries_definition
- *install_yamlschemacpp_definition
- *build_and_test_definition - *build_and_test_definition
############ UBUNTU 20.04 TESTS ############ ############ UBUNTU 20.04 TESTS ############
...@@ -119,6 +142,8 @@ build_and_test:focal: ...@@ -119,6 +142,8 @@ build_and_test:focal:
image: labrobotica/wolf_deps:20.04 image: labrobotica/wolf_deps:20.04
script: script:
- *print_variables_definition - *print_variables_definition
- *preliminaries_definition
- *install_yamlschemacpp_definition
- *build_and_test_definition - *build_and_test_definition
############ DEPLOY PLUGINS ANY BRANCY EXCEPT FOR main ############ ############ DEPLOY PLUGINS ANY BRANCY EXCEPT FOR main ############
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment