From f6fcf076eaba3a94cbfb5872380c7a9bb53748da Mon Sep 17 00:00:00 2001 From: Martin Stump <martin.stump@mercedes-benz.com> Date: Mon, 23 Jan 2023 13:15:31 +0000 Subject: [PATCH] Add .gitlab-ci.yml file --- .gitlab-ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..df2473f --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,29 @@ +stages: + - build + - test + - deploy + +build-job: + stage: build + script: + - cmake -G Ninja -B build + - cmake --build build + +unit-test-job: + stage: test + script: + - cmake --build build --target test + +lint-test-job: + stage: test + script: + - echo "Linting code... This will take about 10 seconds." + - sleep 10 + - echo "No lint issues found." + +deploy-job: + stage: deploy + environment: production + script: + - echo "Deploying application..." + - echo "Application successfully deployed." -- GitLab