-
Notifications
You must be signed in to change notification settings - Fork 3
/
appveyor.yml
32 lines (26 loc) · 1012 Bytes
/
appveyor.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
version: 1.0.{build}-{branch}
environment:
matrix:
- GENERATOR: "MinGW Makefiles"
platform:
- x64
- x86
configuration:
- Debug
- Release
before_build:
# Workaround for CMake not wanting sh.exe on PATH for MinGW
- set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
- set PATH=C:\MinGW\bin;%PATH%
- mkdir _build
- cd _build
build_script:
# Test with stricter flags
- set 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 -G "%GENERATOR%" -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DCMAKE_C_FLAGS="%CFLAGS%" ..
- cmake --build . --config %CONFIGURATION% -- VERBOSE=1
test_script:
- ctest -VV --config %CONFIGURATION%