polybar-dwm/.travis.yml

103 lines
2.9 KiB
YAML
Raw Normal View History

2016-05-31 10:33:30 +02:00
sudo: required
2016-10-12 11:49:17 +02:00
dist: trusty
2016-10-11 16:20:19 +02:00
language: cpp
2018-04-08 00:49:51 +02:00
env:
global:
- JOBS=4
2018-04-08 15:29:31 +02:00
- MAKEFLAGS="-j ${JOBS}"
2018-04-08 00:49:51 +02:00
- POLYBAR_BUILD_TYPE="compile"
# Build configurations can either not specify anything for 'addon' and use this
# default list of packages. Or they can pick and choose which package groups to
# install
addons:
apt:
sources: &sources
- ubuntu-toolchain-r-test
packages:
- &gcc
- g++-5
- gcc-5
- &clang
- libstdc++-5-dev
- &base_deps
- libxcb-composite0-dev
- libxcb-ewmh-dev
- libxcb-icccm4-dev
- libxcb-image0-dev
- libxcb-randr0-dev
- libxcb-util0-dev
- python-xcbgen
- xcb-proto
- &optional_deps
- libxcb-xkb-dev
- libxcb-cursor-dev
- libxcb1-dev
- xutils-dev
- i3-wm
- libasound2-dev
- libpulse-dev
- libcairo2-dev
- libiw-dev
- libmpdclient-dev
2018-04-08 00:49:51 +02:00
script: source ${TRAVIS_BUILD_DIR}/common/travis/build.sh
matrix:
include:
- compiler: clang
env: BUILD_TYPE=Release
addons: {apt: {sources: *sources, packages: [*clang, *base_deps, *optional_deps]}}
2018-04-08 00:49:51 +02:00
- compiler: gcc
env: BUILD_TYPE=Coverage POLYBAR_BUILD_TYPE=tests BUILD_TESTS=ON
addons: {apt: {sources: *sources, packages: [*gcc, *base_deps, *optional_deps]}}
2018-04-08 00:49:51 +02:00
script: ${TRAVIS_BUILD_DIR}/common/travis/tests.sh
after_success:
- cd ${TRAVIS_BUILD_DIR}
- bash <(curl -s https://codecov.io/bash) -F unittests -a "-ap" -Z || echo "Codecov did not collect coverage reports"
2018-04-08 00:49:51 +02:00
- compiler: gcc
env: BUILD_TYPE=Release
addons: {apt: {sources: *sources, packages: [*gcc, *base_deps, *optional_deps]}}
2018-04-08 00:49:51 +02:00
# Minimal build, contains no optional dependencies. This makes sure that
# we properly remove files from compilation that depend on libraries that
# are not installed
- compiler: gcc
env: BUILD_TYPE=Release POLYBAR_BUILD_TYPE=minimal
addons: {apt: {sources: *sources, packages: [*gcc, *base_deps]}}
2016-06-15 05:32:35 +02:00
2016-10-11 16:20:19 +02:00
cache:
ccache: true
apt: true
2016-10-11 16:20:19 +02:00
directories:
2017-01-20 03:30:03 +01:00
- ${TRAVIS_BUILD_DIR}/deps/xcb-util-xrm
2016-10-11 16:20:19 +02:00
2016-06-15 05:32:35 +02:00
install:
2017-01-25 15:21:58 +01:00
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
- mkdir -p "${DEPS_DIR}" && cd "${DEPS_DIR}"
2016-11-19 08:55:46 +01:00
- source ${TRAVIS_BUILD_DIR}/common/travis/environment.sh
2017-01-20 03:30:03 +01:00
- source ${TRAVIS_BUILD_DIR}/common/travis/install_xcb_xrm.sh
2016-10-11 16:20:19 +02:00
2016-05-31 10:33:30 +02:00
before_script:
2016-11-19 08:55:46 +01:00
- source ${TRAVIS_BUILD_DIR}/common/travis/summary.sh
- source ${TRAVIS_BUILD_DIR}/common/travis/configure.sh
2016-05-31 10:33:30 +02:00
# Only fetch the newest 5 commits instead of 50
git:
depth: 5
2016-05-31 13:09:42 +02:00
notifications:
2016-11-19 08:31:06 +01:00
email: false
2016-05-31 13:09:42 +02:00
irc:
channels:
2016-11-19 06:22:44 +01:00
- "irc.freenode.org#polybar"
2016-05-31 14:53:37 +02:00
template:
2016-11-19 08:55:46 +01:00
- "%{author} pushed #%{commit} \"%{commit_subject}\" to %{repository_name}/%{branch}"
- "Build #%{build_number} %{result} / %{build_url} (diff: %{compare_url})"
use_notice: true
on_success: change
on_failure: change