os:
  - linux
  - osx

language: c

compiler:
  - gcc
  - clang

script:
  - mkdir _build
  - cd _build
  - cmake ..
  - cmake --build .
  - ctest -VV

os:
  - linux
  - osx

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 -std=c99"
  - cmake .. -DCMAKE_C_FLAGS="$CFLAGS"
  - cmake --build .
  - ctest -VV

Test with stricter compile flags
Test with stricter compile flags
