1
0
Fork 0
mirror of https://github.com/Raymo111/i3lock-color.git synced 2024-11-11 13:50:52 -05:00
i3lock-color/.travis.yml
Michael Stapelberg ef4f9e4057
Switch to autotools (#163)
This was largely copied from the i3 configure.ac and Makefile.am.
2017-12-02 10:08:54 +01:00

29 lines
1 KiB
YAML

# Use Ubuntu 14.04 (trusty), as per http://blog.travis-ci.com/2015-10-14-opening-up-ubuntu-trusty-beta/
sudo: required
dist: trusty
language: c
compiler:
- gcc
- clang
addons:
apt:
packages:
- clang-format-3.5
- pkg-config
- libpam0g-dev
- libcairo2-dev
- libxcb1-dev
- libxcb-dpms0-dev
- libxcb-image0-dev
- libxcb-util0-dev
- libev-dev
- libxcb-xinerama0-dev
- libxcb-xkb-dev
before_install:
- "echo 'APT::Default-Release \"trusty\";' | sudo tee /etc/apt/apt.conf.d/default-release"
- "echo 'deb http://archive.ubuntu.com/ubuntu/ xenial main universe' | sudo tee /etc/apt/sources.list.d/wily.list"
- sudo apt-get update
- sudo apt-get --force-yes -y install -t xenial libxkbcommon-dev libxkbcommon-x11-dev
script:
- autoreconf -fi && mkdir -p build && cd build && (../configure || (cat config.log; false)) && make -j CFLAGS="-Wformat -Wformat-security -Wextra -Wno-unused-parameter -Werror"
- clang-format-3.5 -i *.[ch] && git diff --exit-code || (echo 'Code was not formatted using clang-format!'; false)