File tree Expand file tree Collapse file tree 1 file changed +105
-0
lines changed Expand file tree Collapse file tree 1 file changed +105
-0
lines changed Original file line number Diff line number Diff line change
1
+ image : registry.gitlab.com/iniparser/docker-cmake:latest
2
+
3
+ variables :
4
+ GIT_SUBMODULE_STRATEGY : recursive
5
+ LD_LIBRARY_PATH : ${CI_BUILDS_DIR}/iniparser/iniparser/install/lib/
6
+
7
+
8
+ stages :
9
+ - build
10
+ - doc
11
+ - test
12
+ - win
13
+
14
+ build :
15
+ stage : build
16
+ script :
17
+ - mkdir build
18
+ - cd build
19
+ - cmake -DCMAKE_INSTALL_PREFIX=../install -DBUILD_TESTS=ON -DBUILD_EXAMPLES=ON ..
20
+ - make install
21
+ - tree -a .
22
+ artifacts :
23
+ paths :
24
+ - install/*
25
+ - build/html/*
26
+
27
+ pages :
28
+ stage : doc
29
+ dependencies :
30
+ - build
31
+ script :
32
+ - mv build/html/ public/
33
+ artifacts :
34
+ paths :
35
+ - public
36
+ # rules:
37
+ # - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
38
+
39
+ test :
40
+ stage : test
41
+ script :
42
+ - pwd
43
+ - ls -l
44
+ - cd install/bin
45
+ - ./testrun
46
+ dependencies :
47
+ - build
48
+
49
+ memcheck :
50
+ stage : test
51
+ script :
52
+ - pwd
53
+ - ls -l
54
+ - cd install/bin
55
+ - valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=255 ./testrun
56
+ dependencies :
57
+ - build
58
+
59
+ iniexample-memcheck :
60
+ stage : test
61
+ script :
62
+ - pwd
63
+ - tree
64
+ - cd install/share/doc/iniparser/examples/
65
+ - valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=255 ./iniexample
66
+ dependencies :
67
+ - build
68
+
69
+ iniwrite-memcheck :
70
+ stage : test
71
+ script :
72
+ - pwd
73
+ - tree
74
+ - cd install/share/doc/iniparser/examples/
75
+ - valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=255 ./iniwrite
76
+ dependencies :
77
+ - build
78
+
79
+ parse-memcheck :
80
+ stage : test
81
+ script :
82
+ - pwd
83
+ - tree
84
+ - cd install/share/doc/iniparser/examples/
85
+ - valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=255 ./parse
86
+ dependencies :
87
+ - build
88
+
89
+ .shared_windows_runners :
90
+ tags :
91
+ - saas-windows-medium-amd64
92
+
93
+ win-build :
94
+ extends :
95
+ - .shared_windows_runners
96
+ stage : win
97
+ script :
98
+ - mkdir build
99
+ - cd build
100
+ - cmake -DCMAKE_INSTALL_PREFIX=..\install -DBUILD_DOCS=OFF -DBUILD_EXAMPLES=ON ..
101
+ - cmake --build .
102
+ artifacts :
103
+ paths :
104
+ - install
105
+ dependencies : []
You can’t perform that action at this time.
0 commit comments