language: generic
sudo: required
before_install:
  - sudo add-apt-repository ppa:duggan/bats --yes
  - sudo apt-get update -qq
  - sudo apt-get install -qq bats
script: bats --tap test
after_success:
  - bash <(curl -s https://codecov.io/bash)
notifications:
  email:
    on_success: never

language: generic
sudo: required
addons:
  apt:
    packages:
      - libcurl4-openssl-dev
      - libelf-dev
      - libdw-dev
      - cmake
before_install:
  - sudo add-apt-repository ppa:duggan/bats --yes
  - sudo apt-get update -qq
  - sudo apt-get install -qq bats
script: bats --tap test
after_success: |
  wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
  tar xzf master.tar.gz &&
  cd kcov-master &&
  mkdir build &&
  cd build &&
  cmake .. &&
  make &&
  sudo make install &&
  cd ../.. &&
  rm -rf kcov-master &&
  mkdir -p coverage &&
  kcov --include-path=. --exclude-pattern='bash,test/stub,testspace/lnkr_lib' coverage bats test &&
  bash <(curl -s https://codecov.io/bash)
notifications:
  email:
    on_success: never

Use kcov for code coverage
Use kcov for code coverage
