2016-10-17 16:37:56 +00:00
|
|
|
|
2016-03-20 16:24:59 +00:00
|
|
|
sudo: required
|
2015-12-01 22:31:18 +00:00
|
|
|
dist: trusty
|
2014-08-28 19:29:06 +00:00
|
|
|
language: c
|
2016-10-17 16:37:56 +00:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
|
|
|
|
# via the "travis encrypt" command using the project repo's public key
|
|
|
|
- secure: "Uodrn3x36plX2yk4+c7eimCuv7j6p6n1XCNbNEYxibRX77730eQMCVS0BvM40OgD7m5K9s2hIQaMV7EMj3qKuRmemULDVJVTgNd1fbx6t4BhYh+Hrf6FhsNcm9nFxvQQrdJAVSOwIAlrUilVFotDRt9qKqLwwZiBKIs5gBPcHQY="
|
|
|
|
|
2015-07-16 19:39:40 +00:00
|
|
|
addons:
|
2016-10-17 16:37:56 +00:00
|
|
|
coverity_scan:
|
|
|
|
project:
|
|
|
|
name: "DaveDavenport/rofi"
|
|
|
|
description: "Build submitted via Travis CI"
|
|
|
|
notification_email: qball@gmpclient.org
|
2016-10-17 18:19:58 +00:00
|
|
|
build_command_prepend: "autoreconf -i;./configure; make clean"
|
|
|
|
build_command: "make"
|
2016-10-17 16:37:56 +00:00
|
|
|
branch_pattern: coverity_scan
|
2015-07-16 19:39:40 +00:00
|
|
|
apt:
|
2016-03-20 16:24:59 +00:00
|
|
|
packages:
|
|
|
|
- autoconf
|
|
|
|
- automake
|
|
|
|
- make
|
2016-06-25 12:17:49 +00:00
|
|
|
- xutils-dev
|
2016-03-20 16:24:59 +00:00
|
|
|
- libpango1.0-dev
|
|
|
|
- libcairo2-dev
|
|
|
|
- libstartup-notification0-dev
|
|
|
|
- libxcb-icccm4-dev
|
|
|
|
- libxcb-util0-dev
|
|
|
|
- libxcb-xinerama0-dev
|
|
|
|
- libxcb-xkb-dev
|
|
|
|
- libxcb1-dev
|
|
|
|
- xvfb
|
|
|
|
- discount
|
|
|
|
- xdotool
|
|
|
|
- fluxbox
|
2016-08-19 17:44:31 +00:00
|
|
|
- gdb
|
2016-10-18 20:54:38 +00:00
|
|
|
- lcov
|
2016-10-25 19:31:31 +00:00
|
|
|
- doxygen
|
2016-10-25 19:33:22 +00:00
|
|
|
- graphviz
|
2015-07-16 19:39:40 +00:00
|
|
|
|
2014-08-28 19:19:46 +00:00
|
|
|
compiler:
|
2016-03-20 16:24:59 +00:00
|
|
|
- gcc
|
2014-08-28 19:19:46 +00:00
|
|
|
|
2016-03-20 14:23:37 +00:00
|
|
|
before_install:
|
|
|
|
- sudo add-apt-repository -y 'deb http://debian.jpleau.ca/ jessie-backports main contrib non-free'
|
|
|
|
- sudo apt-get update -qq
|
2016-10-17 16:37:56 +00:00
|
|
|
- echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
|
|
|
|
|
2016-03-20 14:23:37 +00:00
|
|
|
|
2016-04-02 08:21:54 +00:00
|
|
|
# TODO: We install xkbcommon here, until Travis use an up-to-date enough Ubuntu
|
|
|
|
# TODO: We install libxcb-ewmh-dev here, until it is whitelisted again in Travis
|
2016-03-20 13:36:23 +00:00
|
|
|
install:
|
2016-04-02 08:21:54 +00:00
|
|
|
- sudo apt-get install -y --force-yes libxkbcommon-dev libxkbcommon-x11-dev libxcb-ewmh-dev
|
2016-03-20 13:36:23 +00:00
|
|
|
|
|
|
|
before_script:
|
2016-06-25 12:14:39 +00:00
|
|
|
- git clone --recursive https://github.com/Airblader/xcb-util-xrm.git
|
|
|
|
- cd xcb-util-xrm
|
|
|
|
- ./autogen.sh --prefix=/usr
|
|
|
|
- make
|
|
|
|
- sudo make install
|
|
|
|
- cd -
|
2016-03-20 16:24:59 +00:00
|
|
|
- autoreconf -i
|
2016-08-31 08:09:41 +00:00
|
|
|
- ./configure --enable-gcov --enable-drun
|
2014-08-28 19:19:46 +00:00
|
|
|
|
2014-08-29 13:17:57 +00:00
|
|
|
script:
|
2015-07-16 19:43:32 +00:00
|
|
|
- make
|
2016-03-20 13:54:03 +00:00
|
|
|
- make check
|
2015-07-16 19:47:53 +00:00
|
|
|
# to re-enable if xdotool is allowed.
|
2015-07-21 06:14:53 +00:00
|
|
|
- make test-x
|
2016-01-05 15:46:43 +00:00
|
|
|
- make test-x1
|
2016-10-18 20:57:53 +00:00
|
|
|
- make coverage-cli
|
|
|
|
# - gcov source/rofi.c
|
2015-11-08 09:35:43 +00:00
|
|
|
- make distcheck
|
2016-10-25 19:31:31 +00:00
|
|
|
- git clone https://github.com/alobbs/doxy-coverage
|
|
|
|
- make doxy
|
|
|
|
- ./doxy-coverage/doxy-coverage.py html/xml/
|
2015-12-31 18:04:38 +00:00
|
|
|
|
|
|
|
after_success:
|
|
|
|
- bash <(curl -s https://codecov.io/bash)
|
2016-10-17 16:37:56 +00:00
|
|
|
|