-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
70 lines (64 loc) · 1.61 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
image: gcc
stages:
- build
- unit
- http
build-job:
stage: build
before_script:
- apt-get update
- apt-get install --yes cmake
script:
- echo "Compiling the code..."
- cmake . && make
- echo "Compile complete."
unit-test:
stage: unit
before_script:
- apt-get update
- apt-get install -y cmake
script:
- echo "Compiling the code..."
- cmake . && make
- echo "Running tests..."
- ./build/tests.out
unit-test-job-valgrind:
stage: unit
before_script:
- apt-get update
- apt-get install --yes cmake valgrind
script:
- echo "Compiling the code..."
- cmake . && make
- echo "Running tests..."
- >-
valgrind --tool=memcheck --gen-suppressions=all --leak-check=full
--leak-resolution=med --track-origins=yes --vgdb=no --trace-children=yes
--error-exitcode=1 ./build/tests.out --output-on-failure
unit-test-job-asan:
stage: unit
before_script:
- apt-get update
- apt-get install --yes cmake
- >-
echo "set(CMAKE_C_FLAGS \"\${CMAKE_C_FLAGS} -fsanitize=address -g
-fno-omit-frame-pointer -O1\")" >> CMakeLists.txt
script:
- echo "Compiling the code..."
- cmake . && make
- echo "Running tests..."
- ./build/tests.out --output-on-failure
http-test-job:
stage: http
before_script:
- apt-get update
- apt-get install --yes cmake
- apt-get install --yes python3
script:
- echo "Compiling the code..."
- cmake . && make
- echo "Starting the server..."
- ./build/server.out & echo $! > server.pid
- sleep 5
- echo "Running tests..."
- python3 tests/http/tests.py