From 44ce7677091066c588e52c70c287784c5db5c5d7 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Thu, 9 Jan 2025 19:01:58 +0100 Subject: [PATCH] applied workflow changes to gitlab-ci --- .gitlab-ci.yml | 41 ++++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b3b11d7..72c4ac5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,15 +22,18 @@ variables: LOGGER_OUTPUT: "./out/why2-logger-test" LOGGER_APP: "why2-logger" VALGRIND: "valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s" + GDB: gdb -ex "run" -ex "quit" --batch + CONFIGURE: "./configure.sh" + NEEDED_STUFF: "sudo lsb-release gdb" why2-chat-build: stage: build image: rust:latest # Fixes cargo installation problems in ./configure.sh script: - apt-get update # Update repos - - apt-get install sudo lsb-release -y # Install needed stuff - - chmod +x configure.sh # Permissions - - sudo ./configure.sh # Preparation + - apt-get install $NEEDED_STUFF -y # Install needed stuff + - chmod +x $CONFIGURE # Permissions + - sudo $CONFIGURE # Preparation - make install BYPASS_CHECK=true # Install WHY2 - make build_chat # Build Chat artifacts: @@ -43,13 +46,13 @@ why2-core-test: image: rust:latest script: - apt-get update # Update repos - - apt-get install sudo lsb-release valgrind -y # Install needed stuff - - chmod +x configure.sh # Permissions - - sudo ./configure.sh # Preparation + - apt-get install $NEEDED_STUFF valgrind -y # Install needed stuff + - chmod +x $CONFIGURE # Permissions + - sudo $CONFIGURE # Preparation - make install BYPASS_CHECK=true # Install WHY2 - make test_core # Build WHY2 Test - - ./$CORE_OUTPUT # Test Lib - - $CORE_APP # Test App + - $GDB $CORE_OUTPUT # Test Lib + - $GDB $CORE_APP # Test App - $VALGRIND $CORE_OUTPUT # Test Lib by Valgrind why2-logger-test: @@ -57,13 +60,13 @@ why2-logger-test: image: rust:latest script: - apt-get update # Update repos - - apt-get install sudo lsb-release valgrind -y # Install needed stuff - - chmod +x configure.sh # Permissions - - sudo ./configure.sh # Preparation + - apt-get install $NEEDED_STUFF valgrind -y # Install needed stuff + - chmod +x $CONFIGURE # Permissions + - sudo $CONFIGURE # Preparation - make install BYPASS_CHECK=true # Install WHY2 - make test_logger # Build WHY2 Test - - ./$LOGGER_OUTPUT # Test Lib - - $LOGGER_APP # Test App + - $GDB $LOGGER_OUTPUT # Test Lib + - $GDB $LOGGER_APP # Test App - $VALGRIND $LOGGER_OUTPUT # Test Lib by Valgrind why2-project: @@ -71,10 +74,10 @@ why2-project: image: rust:latest script: - apt-get update # Update repos - - apt-get install sudo lsb-release -y # Install needed stuff - - chmod +x configure.sh # Permissions - - sudo ./configure.sh # Preparation + - apt-get install $NEEDED_STUFF -y # Install needed stuff + - chmod +x $CONFIGURE # Permissions + - sudo $CONFIGURE # Preparation - make install BYPASS_CHECK=true # Install WHY2 - - curl -Lo test.c https://gist.github.com/ENGO150/d8419b6c31ffb68ebb930a5b41af8c73/raw # Download WHY2 test project - - cc test.c -lwhy2 -Wall -o test # Build WHY2 project - - ./test # Run Test \ No newline at end of file + - curl -Lo ./test.c https://gist.github.com/ENGO150/d8419b6c31ffb68ebb930a5b41af8c73/raw # Download WHY2 test project + - cc test.c -lwhy2 -Wall -o ./test # Build WHY2 project + - $GDB ./test # Run Test \ No newline at end of file