-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
81 lines (65 loc) · 1.31 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
stages:
- build
- test
- format
### Build stage
#
# build the project
build:
image: gcc:latest
stage: build
script:
- echo "Build the project"
- make
### Test stages
#
# run the unit tests
test_unit:
image: gcc:latest
stage: test
dependencies:
- build
script:
- echo "Run the unit tests"
- make test-unit
# run the tests with valgrind
# to check for memory leaks
memory_leaks:
image: yag000/c_tools:latest
stage: test
dependencies:
- build
script:
- echo "Run the tests with valgrind"
- make test-valgrind
# runs our tests, using our professor's framework
test_tyy:
image: yag000/c_tools:latest
stage: test
dependencies:
- build
script:
- echo "Run tyy tests"
- make test-tyy
# run the tests provided by our
# professors
test_professor:
image: yag000/c_tools:latest
stage: test
dependencies:
- build
script:
- echo "Run professors tests"
- TEST_FOLDER_FILTER=jalon make test-professor
- TEST_FOLDER_FILTER=rendu-final-A make test-professor
- TEST_FOLDER_FILTER=rendu-final-B make test-professor
- TEST_FOLDER_FILTER=rendu-final-D make test-professor
### Format stage
#
# check the code Format
format:
image: yag000/c_tools:latest
stage: format
script:
- echo "Check the code format"
- make check-format