2015-11-06 03:01:49 -05:00
|
|
|
# Use Ubuntu 14.04 (trusty), as per http://blog.travis-ci.com/2015-10-14-opening-up-ubuntu-trusty-beta/
|
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
2015-03-17 03:42:49 -04:00
|
|
|
language: c
|
|
|
|
compiler:
|
|
|
|
- gcc
|
2015-11-06 03:01:49 -05:00
|
|
|
- clang
|
2015-11-06 02:52:48 -05:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- clang-format-3.5
|
2015-11-06 03:01:49 -05:00
|
|
|
- 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"
|
2017-10-21 18:22:10 -04:00
|
|
|
- "echo 'deb http://archive.ubuntu.com/ubuntu/ xenial main universe' | sudo tee /etc/apt/sources.list.d/wily.list"
|
2015-11-06 03:01:49 -05:00
|
|
|
- sudo apt-get update
|
2017-10-21 18:22:10 -04:00
|
|
|
- sudo apt-get --force-yes -y install -t xenial libxkbcommon-dev libxkbcommon-x11-dev
|
2015-03-17 03:42:49 -04:00
|
|
|
script:
|
2017-12-02 04:08:54 -05:00
|
|
|
- autoreconf -fi && mkdir -p build && cd build && (../configure || (cat config.log; false)) && make -j CFLAGS="-Wformat -Wformat-security -Wextra -Wno-unused-parameter -Werror"
|
2015-03-17 03:42:49 -04:00
|
|
|
- clang-format-3.5 -i *.[ch] && git diff --exit-code || (echo 'Code was not formatted using clang-format!'; false)
|