language: c

dist: xenial

os: linux

compiler:
  - gcc
  - clang

sudo: true

addons:
  apt:
    packages:
      - libxrandr-dev
      - libpango1.0-dev
      - checkinstall
      - clang
      - gcc

script:
  - ./configure --prefix=/usr
  - make
  - make test
  - sudo checkinstall --install=no -y

env:
  global:
    - CODECOV_TOKEN="786edde0-bf90-4e6b-9299-cc3f18033616"
    - CFLAGS=-coverage

after_success:
  - bash <(curl -s https://codecov.io/bash)
  - #https://github.com/probonopd/uploadtool/
  - # ls -lh out/* Assuming you have some files in out/ that you would like to upload
  - wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
  - bash upload.sh jgmenu_*_amd64.deb

branches:
  except:
    - # Do not build tags that we create when we upload to GitHub Releases
    - /^(?i:continuous)$/
