diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..16b32ab04ec8869c4cd2708b98c5dee19847a48f --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,31 @@ +stages: + - build + - test + - clean + +variables: + CC: gcc + CFLAGS: -g -Wall -Wextra -Wpedantic + LDLIBS: -lm + LDFLAGS: -fsanitize=address -fsanitize=leak + +# Build stage +build: + stage: build + script: + - echo "Compiling the project..." + - make puissance4 + +# Test stage +test: + stage: test + script: + - echo "Running tests..." + - make tests + +# Clean stage +clean: + stage: clean + script: + - echo "Cleaning the project..." + - make clean