2016-10-17 12:37:56 -04:00
|
|
|
|
2016-03-20 12:24:59 -04:00
|
|
|
sudo: required
|
2017-04-04 15:13:39 -04:00
|
|
|
dist: trusty
|
2014-08-28 15:29:06 -04:00
|
|
|
language: c
|
2016-10-17 12:37:56 -04: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 15:39:40 -04:00
|
|
|
addons:
|
2016-10-17 12:37:56 -04:00
|
|
|
coverity_scan:
|
|
|
|
project:
|
|
|
|
name: "DaveDavenport/rofi"
|
|
|
|
description: "Build submitted via Travis CI"
|
|
|
|
notification_email: qball@gmpclient.org
|
2016-10-17 14:19:58 -04:00
|
|
|
build_command_prepend: "autoreconf -i;./configure; make clean"
|
|
|
|
build_command: "make"
|
2016-10-17 12:37:56 -04:00
|
|
|
branch_pattern: coverity_scan
|
2015-07-16 15:39:40 -04:00
|
|
|
apt:
|
2016-03-20 12:24:59 -04:00
|
|
|
packages:
|
|
|
|
- autoconf
|
|
|
|
- automake
|
|
|
|
- make
|
2016-06-25 08:17:49 -04:00
|
|
|
- xutils-dev
|
2016-03-20 12:24:59 -04: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 13:44:31 -04:00
|
|
|
- gdb
|
2016-10-18 16:54:38 -04:00
|
|
|
- lcov
|
2016-10-25 15:31:31 -04:00
|
|
|
- doxygen
|
2016-10-25 15:33:22 -04:00
|
|
|
- graphviz
|
2015-07-16 15:39:40 -04:00
|
|
|
|
2014-08-28 15:19:46 -04:00
|
|
|
compiler:
|
2016-03-20 12:24:59 -04:00
|
|
|
- gcc
|
2014-08-28 15:19:46 -04:00
|
|
|
|
2016-03-20 10:23:37 -04:00
|
|
|
before_install:
|
2017-04-04 15:13:39 -04:00
|
|
|
- sudo add-apt-repository -y 'deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse'
|
2016-03-20 10:23:37 -04:00
|
|
|
- sudo add-apt-repository -y 'deb http://debian.jpleau.ca/ jessie-backports main contrib non-free'
|
|
|
|
- sudo apt-get update -qq
|
2016-10-17 12:37:56 -04: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 10:23:37 -04:00
|
|
|
|
2016-04-02 04:21:54 -04: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 09:36:23 -04:00
|
|
|
install:
|
2017-04-04 15:13:39 -04:00
|
|
|
- sudo apt-get install -y --force-yes libxkbcommon-dev libxkbcommon-x11-dev libxcb-ewmh-dev flex/trusty-backports
|
2016-03-20 09:36:23 -04:00
|
|
|
|
|
|
|
before_script:
|
2016-06-25 08:14:39 -04: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 12:24:59 -04:00
|
|
|
- autoreconf -i
|
2016-08-31 04:09:41 -04:00
|
|
|
- ./configure --enable-gcov --enable-drun
|
2014-08-28 15:19:46 -04:00
|
|
|
|
2014-08-29 09:17:57 -04:00
|
|
|
script:
|
2015-07-16 15:43:32 -04:00
|
|
|
- make
|
2016-03-20 09:54:03 -04:00
|
|
|
- make check
|
2015-07-16 15:47:53 -04:00
|
|
|
# to re-enable if xdotool is allowed.
|
2017-03-31 15:08:52 -04:00
|
|
|
- ulimit -c unlimited
|
2015-07-21 02:14:53 -04:00
|
|
|
- make test-x
|
2017-03-31 15:08:52 -04:00
|
|
|
- if [ -f core ]; then echo "bt" | gdb ./rofi core; fi
|
2016-01-05 10:46:43 -05:00
|
|
|
- make test-x1
|
2016-10-18 16:57:53 -04:00
|
|
|
- make coverage-cli
|
|
|
|
# - gcov source/rofi.c
|
2015-11-08 04:35:43 -05:00
|
|
|
- make distcheck
|
2016-10-25 15:31:31 -04:00
|
|
|
- git clone https://github.com/alobbs/doxy-coverage
|
2016-11-15 16:12:53 -05:00
|
|
|
- make doxy 2>&1 | tee doxygen.log
|
|
|
|
- test $(grep -c warning doxygen.log) -eq 0
|
2016-10-25 16:08:19 -04:00
|
|
|
- ./doxy-coverage/doxy-coverage.py doc/html/xml/
|
2015-12-31 13:04:38 -05:00
|
|
|
|
|
|
|
after_success:
|
|
|
|
- bash <(curl -s https://codecov.io/bash)
|
2016-10-17 12:37:56 -04:00
|
|
|
|