From d603fbe6ebbd99f168ae067f1c54c6cf75b08031 Mon Sep 17 00:00:00 2001 From: Mateo Cindric Date: Wed, 14 Dec 2022 18:06:13 +0000 Subject: [PATCH] CI/CD: add test stage --- .gitlab-ci.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 17020dc3..234c7dee 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,6 +5,7 @@ variables: stages: - build + - test # install libraries before_script: @@ -52,4 +53,14 @@ build:sanitized_memory: - cmake --build build-sanitized-memory/ artifacts: paths: - - build-sanitized-memory/ \ No newline at end of file + - build-sanitized-memory/ + +test:default: + stage: test + needs: ["build:default"] + script: + - cd build + - ctest -V + artifacts: + paths: + - build/ \ No newline at end of file