added why2-core-test into gitlab-ci

This commit is contained in:
Václav Šmejkal 2024-02-18 11:20:34 +01:00
parent d765f287e6
commit 9c92ae394b
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -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
- $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