From 9c92ae394b80aeee7307e84c58d7b00ae904fb60 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sun, 18 Feb 2024 11:20:34 +0100 Subject: [PATCH] added why2-core-test into gitlab-ci --- .gitlab-ci.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index dddd16f..6ed101d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,6 +17,9 @@ variables: CLIENT: "./out/why2-chat-client" SERVER: "./out/why2-chat-server" + CORE_OUTPUT: "./out/why2-core-test" + CORE_APP: "why2" + VALGRIND: "valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s" why2-chat-build: stage: build @@ -31,4 +34,18 @@ why2-chat-build: artifacts: paths: - $CLIENT - - $SERVER \ No newline at end of file + - $SERVER + +why2-core-test: + stage: build + image: rust:latest + script: + - apt update + - apt install sudo lsb-release -y + - chmod +x configure.sh + - sudo ./configure.sh + - make install BYPASS_CHECK=true + - make test_core + - ./$CORE_OUTPUT + - $APP + - $VALGRIND $APP \ No newline at end of file