sudo: false
language: cpp
os:
  - linux
  - osx
env:
  - CONFIG=coverage DEFINES=standard
  - CONFIG=coverage DEFINES=PUGIXML_WCHAR_MODE
  - CONFIG=coverage DEFINES=PUGIXML_COMPACT
  - CONFIG=release DEFINES=standard
  - CONFIG=release DEFINES=PUGIXML_WCHAR_MODE
  - CONFIG=release DEFINES=PUGIXML_COMPACT
script: make test defines=$DEFINES config=$CONFIG -j2
after_success: bash <(curl -s https://codecov.io/bash) -f pugixml.cpp.gcov
