blob: 7d37e1c0ac29242b84b89770485e4a1c1564bf1c [file] [log] [blame]
os: linux
sudo: required
dist: trusty
language: c
compiler:
- clang
- gcc
branches:
only:
- master
- devel
before_install:
- wget https://cmocka.org/files/1.0/cmocka-1.0.1.tar.xz
- tar -xJvf cmocka-1.0.1.tar.xz
- cd cmocka-1.0.1 && mkdir build && cd build
- cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install
- cd ../..
- if [ "${CC}" = "gcc" ]; then pip install --user codecov; export CFLAGS="-coverage"; fi
script:
- mkdir build && cd build && cmake .. && make -j2 && ctest -V
after_success:
- if [ "${CC}" = "gcc" ]; then codecov; fi