blob: a16bd2000762c9ab4144a6eb1ce3958d5cfe16bd (
plain)
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
|
os:
- linux
dist: focal
arch:
- amd64
- arm64
- ppc64le
- s390x
matrix:
include:
# Different distros and compilers on amd64
- dist: focal
compiler: gcc
- dist: focal
compiler: clang
# Different architectures, gcc only
# We test these b/c Debian and Ubuntu packaging builds them
- arch: arm64
- arch: ppc64le
- arch: s390x
language: c
script:
- mkdir _build
- cd _build
# Test build with stricter flags
- export CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector -g3 -pedantic -W -Wall -Wbad-function-cast -Wcast-align
-Wcast-qual -Wdisabled-optimization -Wendif-labels -Wfloat-conversion -Wfloat-equal -Wformat=2 -Wformat-nonliteral
-Winline -Wmissing-declarations -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow
-Wsign-conversion -Wstrict-prototypes -Wstack-protector -Wswitch -Wundef -Wunused-parameter -Wwrite-strings
-Werror"
- cmake .. -DCMAKE_C_FLAGS="$CFLAGS"
- cmake --build .
- ctest --verbose
|