Skip to content
Snippets Groups Projects
Commit 073b720e authored by WALTER NOA's avatar WALTER NOA
Browse files

0

parent dfcd8ba1
No related merge requests found
Pipeline #294581 passed with stages
in 22 seconds
......@@ -10,33 +10,10 @@ compile-job:
stage: build
script:
- echo "Compiling the project..."
- gcc -c c-check/main.c
- gcc -c utils.c
- gcc -o main main.o utils.o
- gcc -c c-check/interval.c
artifacts :
paths:
- utils.o
test-job:
stage: test
script:
- echo "Running tests..."
- gcc -c test_utils.c
- gcc -c utils.c
- gcc -o test_utils test_utils.o utils.o
- ./test_utils
dependencies:
- compile-job
test-job-2:
stage: test
script:
- echo "Running tests for test_commut..."
- gcc -c test_commut.c
- gcc -o test_commut test_commut.o utils.o # Use utils.o from the artifact
- ./test_commut
dependencies:
- compile-job # Use the utils.o artifact from compile-job
- interval.c
final-job:
stage: final # Define the new final job in the final stage
......
File deleted
File deleted
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment