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
|
2017-05-30 09:29:48 -04:00
|
|
|
- libxcb-ewmh-dev
|
2016-03-20 12:24:59 -04:00
|
|
|
- libxcb-icccm4-dev
|
|
|
|
- libxcb-util0-dev
|
|
|
|
- libxcb-xinerama0-dev
|
|
|
|
- libxcb-xkb-dev
|
2017-06-24 06:58:16 -04:00
|
|
|
- libxcb-randr0-dev
|
2016-03-20 12:24:59 -04:00
|
|
|
- libxcb1-dev
|
|
|
|
- xvfb
|
|
|
|
- discount
|
|
|
|
- xdotool
|
|
|
|
- fluxbox
|
2017-07-27 10:51:07 -04:00
|
|
|
- xterm
|
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
|
2017-04-30 12:34:37 -04:00
|
|
|
- texinfo
|
|
|
|
- texi2html
|
2017-07-25 11:25:51 -04:00
|
|
|
- xfonts-base
|
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:
|
2018-06-09 13:13:57 -04:00
|
|
|
- sudo add-apt-repository -y 'deb https://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse'
|
|
|
|
- sudo add-apt-repository -y 'deb https://debian.jpleau.ca/ jessie-backports main contrib non-free'
|
2016-03-20 10:23:37 -04:00
|
|
|
- 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
|
2016-03-20 09:36:23 -04:00
|
|
|
install:
|
2017-05-30 09:29:48 -04:00
|
|
|
- sudo apt-get install -y --force-yes libxkbcommon-dev libxkbcommon-x11-dev flex/trusty-backports libfl-dev/trusty-backports
|
2017-09-07 14:08:43 -04:00
|
|
|
- sudo apt-get install -y --force-yes python3-pip
|
2017-09-07 14:15:23 -04:00
|
|
|
- pip3 install --user meson==0.41.2
|
2017-05-04 07:45:11 -04:00
|
|
|
- wget https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-linux.zip
|
|
|
|
- unzip ninja-linux.zip
|
|
|
|
- export PATH=$(pwd):$PATH
|
2017-05-04 11:14:28 -04:00
|
|
|
- git clone https://github.com/alobbs/doxy-coverage
|
2016-06-25 08:14:39 -04:00
|
|
|
- git clone --recursive https://github.com/Airblader/xcb-util-xrm.git
|
2017-05-04 11:14:28 -04:00
|
|
|
- cd xcb-util-xrm
|
2016-06-25 08:14:39 -04:00
|
|
|
- ./autogen.sh --prefix=/usr
|
|
|
|
- make
|
|
|
|
- sudo make install
|
|
|
|
- cd -
|
2017-04-30 12:02:39 -04:00
|
|
|
- git clone https://github.com/libcheck/check/ -b 0.11.0
|
|
|
|
- cd check
|
|
|
|
- autoreconf -i
|
2017-04-30 12:25:18 -04:00
|
|
|
- TEX="false" ./configure --prefix=/usr/
|
2017-04-30 12:02:39 -04:00
|
|
|
- make
|
2017-04-30 12:37:34 -04:00
|
|
|
- sudo make install
|
2017-04-30 12:02:39 -04:00
|
|
|
- cd -
|
2017-05-04 11:14:28 -04:00
|
|
|
|
|
|
|
before_script:
|
2017-05-04 07:45:11 -04:00
|
|
|
- meson build -Db_coverage=true
|
2014-08-28 15:19:46 -04:00
|
|
|
|
2014-08-29 09:17:57 -04:00
|
|
|
script:
|
2017-05-04 07:45:11 -04:00
|
|
|
- ninja -C build
|
|
|
|
- ninja -C build test
|
2017-03-31 15:08:52 -04:00
|
|
|
- ulimit -c unlimited
|
2017-05-04 07:45:11 -04:00
|
|
|
- ninja -C build test-x
|
|
|
|
- ninja -C build doc/html 2>&1 > doxygen.log
|
2016-11-15 16:12:53 -05:00
|
|
|
- test $(grep -c warning doxygen.log) -eq 0
|
2017-05-04 07:45:11 -04:00
|
|
|
- ./doxy-coverage/doxy-coverage.py build/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
|
|
|
|
2017-07-14 17:18:29 -04:00
|
|
|
notifications:
|
|
|
|
webhooks:
|
|
|
|
urls:
|
|
|
|
- secure: "AqDM5SkWJPSBeCiyGdXzHYLnFCML/vKxWW/0wE00ocX+97Fa5ixeU7apMJ0OMZ0ZQVXG96xVtlJ513ZSpnRYHx6FF+Ivvw5pYeZjKHqtxThEhOueW1YynYWMX7HJrA4P19ollqRLrtsJqG6x7BhVEnIyhyu9eXtgj6hiI70F0SE="
|
|
|
|
on_success: change
|