-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
43 lines (38 loc) · 1000 Bytes
/
.travis.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
os:
- linux
- osx
arch:
- amd64
- arm64
- ppc64le
- s390x
matrix:
include:
# Different distros and compilers on amd64
- dist: bionic
compiler: gcc
- dist: bionic
compiler: clang
- dist: focal
compiler: gcc
- dist: focal
compiler: clang
# Different architectures, gcc only
- arch: arm64
- arch: ppc64le
- arch: s390x
language: c
compiler:
- gcc
- clang
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-equal -Wformat=2 -Wformat-nonliteral -Winline
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-unused-parameter -Wpointer-arith -Wshadow
-Wstrict-prototypes -Wstack-protector -Wswitch -Wundef -Wwrite-strings"
- cmake .. -DCMAKE_C_FLAGS="$CFLAGS"
- cmake --build .
- ctest -VV