2016-05-31 08:33:30 +00:00
|
|
|
sudo: required
|
2016-10-12 09:49:17 +00:00
|
|
|
dist: trusty
|
2016-10-11 14:20:19 +00:00
|
|
|
language: cpp
|
|
|
|
|
2018-04-07 22:49:51 +00:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- LLVM_VERSION="3.8.1"
|
|
|
|
- LLVM_URL="http://llvm.org/releases/${LLVM_VERSION}/llvm-${LLVM_VERSION}.src.tar.xz"
|
|
|
|
- LIBCXX_URL="http://llvm.org/releases/${LLVM_VERSION}/libcxx-${LLVM_VERSION}.src.tar.xz"
|
|
|
|
- LIBCXXABI_URL="http://llvm.org/releases/${LLVM_VERSION}/libcxxabi-${LLVM_VERSION}.src.tar.xz"
|
|
|
|
- JOBS=4
|
|
|
|
- POLYBAR_BUILD_TYPE="compile"
|
|
|
|
|
|
|
|
script: source ${TRAVIS_BUILD_DIR}/common/travis/build.sh
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- compiler: clang
|
|
|
|
env: BUILD_TYPE=Release
|
|
|
|
|
|
|
|
- compiler: clang
|
|
|
|
env: BUILD_TYPE=Debug
|
|
|
|
|
|
|
|
- compiler: gcc
|
2018-04-08 22:49:36 +00:00
|
|
|
env: BUILD_TYPE=Debug POLYBAR_BUILD_TYPE=tests BUILD_TESTS=ON
|
2018-04-07 23:37:58 +00:00
|
|
|
before_install:
|
|
|
|
- pip install --user cpp-coveralls
|
2018-04-07 22:49:51 +00:00
|
|
|
script: ${TRAVIS_BUILD_DIR}/common/travis/tests.sh
|
2018-04-07 23:37:58 +00:00
|
|
|
after_success:
|
|
|
|
- coveralls --root .. -E ".*CMakeFiles.*" -e tests -e lib -e build/googletest-src --gcov-options '\-p'
|
2018-04-07 22:49:51 +00:00
|
|
|
|
|
|
|
- compiler: gcc
|
|
|
|
env: BUILD_TYPE=Release
|
|
|
|
|
|
|
|
- compiler: gcc
|
|
|
|
env: BUILD_TYPE=Debug
|
2016-05-26 19:10:37 +00:00
|
|
|
|
2016-06-15 03:32:35 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
- llvm-toolchain-precise-3.8
|
|
|
|
packages:
|
|
|
|
- clang-3.8
|
2017-01-24 07:49:27 +00:00
|
|
|
- g++-5
|
|
|
|
- gcc-5
|
2016-12-15 18:16:31 +00:00
|
|
|
- i3-wm
|
|
|
|
- libasound2-dev
|
2017-09-26 02:42:09 +00:00
|
|
|
- libpulse-dev
|
2017-01-24 07:49:27 +00:00
|
|
|
- libcairo2-dev
|
2016-12-15 18:16:31 +00:00
|
|
|
- libiw-dev
|
|
|
|
- libmpdclient-dev
|
|
|
|
- libxcb-ewmh-dev
|
|
|
|
- libxcb-icccm4-dev
|
2017-01-20 01:54:06 +00:00
|
|
|
- libxcb-image0-dev
|
2016-12-15 18:16:31 +00:00
|
|
|
- libxcb-randr0-dev
|
|
|
|
- libxcb-util0-dev
|
|
|
|
- libxcb-xkb-dev
|
2017-09-06 07:07:49 +00:00
|
|
|
- libxcb-cursor-dev
|
2016-12-15 18:16:31 +00:00
|
|
|
- libxcb1-dev
|
|
|
|
- python-xcbgen
|
|
|
|
- xcb-proto
|
2017-01-20 02:30:03 +00:00
|
|
|
- xutils-dev
|
2016-06-15 03:32:35 +00:00
|
|
|
|
2016-10-11 14:20:19 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- ${TRAVIS_BUILD_DIR}/deps/llvm-3.8.1/install
|
2017-01-20 02:30:03 +00:00
|
|
|
- ${TRAVIS_BUILD_DIR}/deps/xcb-util-xrm
|
2016-10-11 14:20:19 +00:00
|
|
|
|
2016-06-15 03:32:35 +00:00
|
|
|
install:
|
2017-01-25 14:21:58 +00:00
|
|
|
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
|
|
|
|
- mkdir -p "${DEPS_DIR}" && cd "${DEPS_DIR}"
|
2016-11-19 07:55:46 +00:00
|
|
|
- source ${TRAVIS_BUILD_DIR}/common/travis/environment.sh
|
2017-01-20 02:30:03 +00:00
|
|
|
- source ${TRAVIS_BUILD_DIR}/common/travis/install_xcb_xrm.sh
|
2016-11-19 07:55:46 +00:00
|
|
|
- source ${TRAVIS_BUILD_DIR}/common/travis/install_libcpp.sh
|
2016-10-11 14:20:19 +00:00
|
|
|
|
2016-05-31 08:33:30 +00:00
|
|
|
before_script:
|
2016-11-19 07:55:46 +00:00
|
|
|
- source ${TRAVIS_BUILD_DIR}/common/travis/summary.sh
|
|
|
|
- source ${TRAVIS_BUILD_DIR}/common/travis/configure.sh
|
2016-05-31 08:33:30 +00:00
|
|
|
|
2016-05-31 11:09:42 +00:00
|
|
|
notifications:
|
2016-11-19 07:31:06 +00:00
|
|
|
email: false
|
2016-05-31 11:09:42 +00:00
|
|
|
irc:
|
|
|
|
channels:
|
2016-11-19 05:22:44 +00:00
|
|
|
- "irc.freenode.org#polybar"
|
2016-05-31 12:53:37 +00:00
|
|
|
template:
|
2016-11-19 07:55:46 +00: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
|