2015-04-14 21:47:17 +00:00
language : c
compiler : clang
branches :
only :
2016-02-04 13:58:44 +00:00
- ci
2015-04-14 21:47:17 +00:00
- master
2016-02-04 12:23:54 +00:00
sudo : false
2017-05-16 14:22:24 +00:00
dist : trusty
2016-02-04 12:23:54 +00:00
addons :
apt :
packages :
- cmake
2017-05-16 14:22:24 +00:00
- libxrandr-dev
- libxinerama-dev
- libxcursor-dev
- libxi-dev
2016-02-04 12:23:54 +00:00
env :
2017-07-17 19:17:14 +00:00
global :
- CFLAGS=-Werror
2017-11-16 15:03:42 +00:00
matrix :
include :
- os : linux
env : BUILD_SHARED_LIBS=ON
- os : linux
env : BUILD_SHARED_LIBS=OFF
- os : linux
sudo : required
addons :
apt :
packages :
- libwayland-dev
- libxkbcommon-dev
- libegl1-mesa-dev
env :
- USE_WAYLAND=ON
- BUILD_SHARED_LIBS=ON
- os : linux
sudo : required
addons :
apt :
packages :
- libwayland-dev
- libxkbcommon-dev
- libegl1-mesa-dev
env :
- USE_WAYLAND=ON
- BUILD_SHARED_LIBS=OFF
- os : osx
env : BUILD_SHARED_LIBS=ON
- os : osx
env : BUILD_SHARED_LIBS=OFF
2015-04-14 21:47:17 +00:00
script :
2017-11-17 03:37:37 +00:00
- if grep -Inr '\s$' src include docs tests examples CMake *.md .gitattributes .gitignore; then echo Trailing whitespace found, aborting.; exit 1; fi
2016-02-04 14:44:20 +00:00
- mkdir build
- cd build
2017-11-16 15:03:42 +00:00
- if test -n "${USE_WAYLAND}"; then wget https://mirrors.kernel.org/ubuntu/pool/universe/e/extra-cmake-modules/extra-cmake-modules_5.38.0a-0ubuntu1_amd64.deb; fi
- if test -n "${USE_WAYLAND}"; then sudo dpkg -i extra-cmake-modules_5.38.0a-0ubuntu1_amd64.deb; fi
- if test -n "${USE_WAYLAND}"; then git clone git://anongit.freedesktop.org/wayland/wayland-protocols; fi
- if test -n "${USE_WAYLAND}"; then pushd wayland-protocols; ./autogen.sh --prefix=/usr; make -j; sudo make install; popd; fi
- cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} -DGLFW_USE_WAYLAND=${USE_WAYLAND} ..
2016-02-04 12:23:54 +00:00
- cmake --build .
2015-04-14 21:47:17 +00:00
notifications :
2016-02-04 13:58:44 +00:00
email :
recipients :
- ci@glfw.org
2015-04-14 21:47:17 +00:00
on_success : never
on_failure : always