2015-04-14 17:47:17 -04:00
|
|
|
language: c
|
|
|
|
compiler: clang
|
|
|
|
branches:
|
|
|
|
only:
|
2016-02-04 08:58:44 -05:00
|
|
|
- ci
|
2015-04-14 17:47:17 -04:00
|
|
|
- master
|
2017-11-16 10:03:42 -05:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
2019-05-17 10:10:28 -04:00
|
|
|
dist: xenial
|
|
|
|
sudo: false
|
2019-05-17 10:15:59 -04:00
|
|
|
name: "X11 shared library"
|
2019-05-17 10:10:28 -04:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- cmake
|
|
|
|
- libxrandr-dev
|
|
|
|
- libxinerama-dev
|
|
|
|
- libxcursor-dev
|
|
|
|
- libxi-dev
|
2018-01-30 10:37:45 -05:00
|
|
|
env:
|
|
|
|
- BUILD_SHARED_LIBS=ON
|
|
|
|
- CFLAGS=-Werror
|
2017-11-16 10:03:42 -05:00
|
|
|
- os: linux
|
2019-05-17 10:10:28 -04:00
|
|
|
dist: xenial
|
|
|
|
sudo: false
|
2019-05-17 10:15:59 -04:00
|
|
|
name: "X11 static library"
|
2019-05-17 10:10:28 -04:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- cmake
|
|
|
|
- libxrandr-dev
|
|
|
|
- libxinerama-dev
|
|
|
|
- libxcursor-dev
|
|
|
|
- libxi-dev
|
2018-01-30 10:37:45 -05:00
|
|
|
env:
|
|
|
|
- BUILD_SHARED_LIBS=OFF
|
|
|
|
- CFLAGS=-Werror
|
2017-11-16 10:03:42 -05:00
|
|
|
- os: linux
|
2019-05-17 10:10:28 -04:00
|
|
|
dist: xenial
|
2017-11-16 10:03:42 -05:00
|
|
|
sudo: required
|
2019-05-17 10:15:59 -04:00
|
|
|
name: "Wayland shared library"
|
2017-11-16 10:03:42 -05:00
|
|
|
addons:
|
|
|
|
apt:
|
2019-05-17 10:10:28 -04:00
|
|
|
sources:
|
|
|
|
- ppa:kubuntu-ppa/backports
|
2017-11-16 10:03:42 -05:00
|
|
|
packages:
|
2019-05-17 10:10:28 -04:00
|
|
|
- extra-cmake-modules
|
2017-11-16 10:03:42 -05:00
|
|
|
- libwayland-dev
|
|
|
|
- libxkbcommon-dev
|
|
|
|
- libegl1-mesa-dev
|
|
|
|
env:
|
|
|
|
- USE_WAYLAND=ON
|
|
|
|
- BUILD_SHARED_LIBS=ON
|
2018-01-30 10:37:45 -05:00
|
|
|
- CFLAGS=-Werror
|
2017-11-16 10:03:42 -05:00
|
|
|
- os: linux
|
2019-05-17 10:10:28 -04:00
|
|
|
dist: xenial
|
2017-11-16 10:03:42 -05:00
|
|
|
sudo: required
|
2019-05-17 10:15:59 -04:00
|
|
|
name: "Wayland static library"
|
2017-11-16 10:03:42 -05:00
|
|
|
addons:
|
|
|
|
apt:
|
2019-05-17 10:10:28 -04:00
|
|
|
sources:
|
|
|
|
- ppa:kubuntu-ppa/backports
|
2017-11-16 10:03:42 -05:00
|
|
|
packages:
|
2019-05-17 10:10:28 -04:00
|
|
|
- extra-cmake-modules
|
2017-11-16 10:03:42 -05:00
|
|
|
- libwayland-dev
|
|
|
|
- libxkbcommon-dev
|
|
|
|
- libegl1-mesa-dev
|
|
|
|
env:
|
|
|
|
- USE_WAYLAND=ON
|
|
|
|
- BUILD_SHARED_LIBS=OFF
|
2018-01-30 10:37:45 -05:00
|
|
|
- CFLAGS=-Werror
|
2017-11-16 10:03:42 -05:00
|
|
|
- os: osx
|
2019-05-17 10:10:28 -04:00
|
|
|
sudo: false
|
2019-05-17 10:15:59 -04:00
|
|
|
name: "Cocoa shared library"
|
2018-01-30 10:37:45 -05:00
|
|
|
env:
|
|
|
|
- BUILD_SHARED_LIBS=ON
|
|
|
|
- CFLAGS=-Werror
|
2017-11-16 10:03:42 -05:00
|
|
|
- os: osx
|
2019-05-17 10:10:28 -04:00
|
|
|
sudo: false
|
2019-05-17 10:15:59 -04:00
|
|
|
name: "Cocoa static library"
|
2018-01-30 10:37:45 -05:00
|
|
|
env:
|
|
|
|
- BUILD_SHARED_LIBS=OFF
|
|
|
|
- CFLAGS=-Werror
|
2015-04-14 17:47:17 -04:00
|
|
|
script:
|
2019-05-17 10:31:42 -04: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 09:44:20 -05:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2019-05-17 10:10:28 -04:00
|
|
|
- if test -n "${USE_WAYLAND}"; then
|
2017-12-01 11:01:51 -05:00
|
|
|
git clone git://anongit.freedesktop.org/wayland/wayland-protocols;
|
|
|
|
pushd wayland-protocols;
|
2018-10-01 09:05:55 -04:00
|
|
|
git checkout 1.15 && ./autogen.sh --prefix=/usr && make && sudo make install;
|
2017-12-01 11:01:51 -05:00
|
|
|
popd;
|
|
|
|
fi
|
2017-11-16 10:03:42 -05:00
|
|
|
- cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} -DGLFW_USE_WAYLAND=${USE_WAYLAND} ..
|
2016-02-04 07:23:54 -05:00
|
|
|
- cmake --build .
|
2015-04-14 17:47:17 -04:00
|
|
|
notifications:
|
2016-02-04 08:58:44 -05:00
|
|
|
email:
|
|
|
|
recipients:
|
|
|
|
- ci@glfw.org
|
2015-04-14 17:47:17 -04:00
|
|
|
on_success: never
|
|
|
|
on_failure: always
|