From ea3ff785e99795ff15a1f84a339dfc91ebda83c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Vallv=C3=A9=20Navarro?= <jvallve@iri.upc.edu> Date: Thu, 20 Jan 2022 10:05:05 +0100 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fe30ad2..2c05af2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,27 +7,51 @@ stages: # List of stages for jobs, and their order of execution - apt-get update -y && apt-get install -y expect - ./auto_script_wolf +.script_test_template: &script_test_definition + - cd wolf/wolf + - ctest -j$(nproc) + - cd ../imu + - ctest -j$(nproc) + - cd ../gnss + - ctest -j$(nproc) + - cd ../laser + - ctest -j$(nproc) + - cd ../vision + - ctest -j$(nproc) + - cd ../apriltag + - ctest -j$(nproc) + - cd ../bodydynamics + - ctest -j$(nproc) -installation-test-xenial: # This job runs in the build stage, which runs first. +############ JOBS ############ +installation-test-xenial: stage: install + cache: [] image: ubuntu:16.04 script: - *script_install_definition + - *script_test_definition -installation-test-bionic: # This job runs in the build stage, which runs first. +installation-test-bionic: stage: install + cache: [] image: ubuntu:18.04 script: - *script_install_definition + - *script_test_definition -installation-test-focal: # This job runs in the build stage, which runs first. +installation-test-focal: stage: install + cache: [] image: ubuntu:20.04 script: - *script_install_definition + - *script_test_definition -lint-test-job: # This job also runs in the test stage. - stage: test # It can run at the same time as unit-test-job (in parallel). +lint-test-job: + stage: test + cache: [] + image: ubuntu:16.04 script: - echo "Linting code... This will take about 10 seconds." - sleep 10 -- GitLab