From b5eb5ad2494242f5b348f85fbc050bf4ff54cf99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Vallv=C3=A9=20Navarro?= <jvallve@iri.upc.edu> Date: Fri, 29 Jul 2022 10:10:56 +0200 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8337cb114..15ec04e07 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -47,6 +47,9 @@ stages: # update apt - apt-get update + # create 'ci_deps' folder (if not exists) + - mkdir -pv ci_deps + .license_header_template: &license_header_definition - cd $CI_PROJECT_DIR @@ -83,6 +86,24 @@ stages: - echo "No changes, nothing to commit!" - 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 vision + - 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 - cd $CI_PROJECT_DIR - mkdir -pv build @@ -111,6 +132,7 @@ build_and_test:bionic: image: labrobotica/wolf_deps:18.04 script: - *print_variables_definition + - *install_yamlschemacpp_definition - *build_and_test_definition ############ UBUNTU 20.04 TESTS ############ @@ -119,6 +141,7 @@ build_and_test:focal: image: labrobotica/wolf_deps:20.04 script: - *print_variables_definition + - *install_yamlschemacpp_definition - *build_and_test_definition ############ DEPLOY PLUGINS ANY BRANCY EXCEPT FOR main ############ -- GitLab