mirror of
https://github.com/polybar/polybar.git
synced 2024-10-27 05:23:39 -04:00
38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
sudo: required
|
|
dist: trusty
|
|
|
|
language: cpp
|
|
compiler:
|
|
- clang
|
|
- gcc
|
|
cache: ccache
|
|
|
|
before_install:
|
|
- sudo apt-add-repository -y "ppa:george-edison55/george-edison"
|
|
- wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add -
|
|
- echo "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.8 main"|sudo tee -a /etc/apt/sources.list
|
|
- sudo sed -i "s/trusty/wily/g" /etc/apt/sources.list
|
|
- sudo apt-get -qq update
|
|
- sudo apt-get install -y clang-3.8 cmake cmake-data libxrandr-dev libboost-dev libiw-dev libasound2-dev libmpdclient-dev
|
|
|
|
before_script:
|
|
- if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
|
|
- if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.8" CC="clang-3.8" CFLAGS="-Qunused-arguments"; fi
|
|
- cmake --version
|
|
- eval "${CXX} --version"
|
|
- eval "${CC} --version"
|
|
- mkdir build
|
|
- cd build
|
|
- cmake -DCMAKE_C_COMPILER="${CC}" -DCMAKE_CXX_COMPILER="${CXX}" -DCMAKE_CXX_FLAGS="${CFLAGS}" ..
|
|
|
|
script: make
|
|
|
|
notifications:
|
|
irc:
|
|
channels:
|
|
- "irc.freenode.net#lemonbuddy"
|
|
template:
|
|
- "%{author} pushed #%{commit} \"%{commit_subject}\" -> %{repository_name}/%{branch}"
|
|
- "Build #%{build_number}: %{result} // Compare at %{compare_url}"
|
|
use_notice: true
|
|
skip_join: true
|