Skip to content

Commit 581aedb

Browse files
committed
Add initial GitLab CI config
1 parent 92b2c12 commit 581aedb

File tree

1 file changed

+79
-0
lines changed

1 file changed

+79
-0
lines changed

.gitlab-ci.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
image: debian
2+
3+
stages:
4+
- sanitize
5+
- build
6+
- test
7+
- package
8+
9+
before_script:
10+
- export DEBIAN_FRONTEND=noninteractive
11+
- uname -a
12+
- df -h
13+
14+
build:debian-7:
15+
stage: build
16+
image: debian:7
17+
only:
18+
- master
19+
before_script:
20+
- apt-get update && apt-get install -y gcc make flex bison libreadline-dev zlib1g-dev jade
21+
script:
22+
- ./configure
23+
- make -j 2
24+
- make install
25+
when: always
26+
27+
build:debian-8:
28+
stage: build
29+
image: debian:8
30+
only:
31+
- master
32+
before_script:
33+
- apt update && apt -y install gcc make flex bison libreadline-dev zlib1g-dev jade
34+
script:
35+
- ./configure
36+
- make -j 2
37+
- make install
38+
when: always
39+
40+
sanitize:clang:
41+
stage: sanitize
42+
only:
43+
- master
44+
before_script:
45+
- apt update && apt -y install clang libfindbin-libs-perl
46+
script:
47+
- scan-build ./configure
48+
- scan-build make -j 2
49+
when: always
50+
51+
sanitize:cppcheck:
52+
stage: sanitize
53+
only:
54+
- master
55+
before_script:
56+
- apt update && apt -y install cppcheck
57+
script:
58+
- cppcheck --enable=all --std=c11 --std=c++11 --std=posix --error-exitcode=1 -i $(find . -name "*.[c,cpp]")
59+
when: always
60+
61+
test:
62+
stage: test
63+
only:
64+
- master
65+
before_script:
66+
- apt update && apt -y install gcc make flex bison libreadline-dev zlib1g-dev jade
67+
script:
68+
- ./configure
69+
- make -j 2
70+
- make check
71+
when: always
72+
73+
package:
74+
stage: package
75+
only:
76+
- master
77+
script:
78+
- echo "Building deb package here"
79+
when: always

0 commit comments

Comments
 (0)