forked from energymon/energymon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
29 lines (24 loc) · 1.03 KB
/
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
version: 1.0.{build}-{branch}
environment:
matrix:
- GENERATOR: "MinGW Makefiles"
configuration:
- Debug
- Release
before_build:
# TODO: Install optional dependencies like hidapi-libusb, libusb-1.0, libftdi
# 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%
test_script:
- ctest -VV --config %CONFIGURATION%