107 lines
3.1 KiB
YAML
107 lines
3.1 KiB
YAML
language: c
|
|
compiler: clang
|
|
branches:
|
|
only:
|
|
- ci
|
|
- master
|
|
- 3.3-stable
|
|
matrix:
|
|
include:
|
|
- os: linux
|
|
dist: xenial
|
|
sudo: false
|
|
name: "X11 shared library"
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- libxrandr-dev
|
|
- libxinerama-dev
|
|
- libxcursor-dev
|
|
- libxi-dev
|
|
env:
|
|
- BUILD_SHARED_LIBS=ON
|
|
- CFLAGS=-Werror
|
|
- os: linux
|
|
dist: xenial
|
|
sudo: false
|
|
name: "X11 static library"
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- libxrandr-dev
|
|
- libxinerama-dev
|
|
- libxcursor-dev
|
|
- libxi-dev
|
|
env:
|
|
- BUILD_SHARED_LIBS=OFF
|
|
- CFLAGS=-Werror
|
|
- os: linux
|
|
dist: xenial
|
|
sudo: required
|
|
name: "Wayland shared library"
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ppa:kubuntu-ppa/backports
|
|
packages:
|
|
- extra-cmake-modules
|
|
- libwayland-dev
|
|
- libxkbcommon-dev
|
|
- libegl1-mesa-dev
|
|
env:
|
|
- USE_WAYLAND=ON
|
|
- BUILD_SHARED_LIBS=ON
|
|
- CFLAGS=-Werror
|
|
- os: linux
|
|
dist: xenial
|
|
sudo: required
|
|
name: "Wayland static library"
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ppa:kubuntu-ppa/backports
|
|
packages:
|
|
- extra-cmake-modules
|
|
- libwayland-dev
|
|
- libxkbcommon-dev
|
|
- libegl1-mesa-dev
|
|
env:
|
|
- USE_WAYLAND=ON
|
|
- BUILD_SHARED_LIBS=OFF
|
|
- CFLAGS=-Werror
|
|
- os: osx
|
|
sudo: false
|
|
name: "Cocoa shared library"
|
|
env:
|
|
- BUILD_SHARED_LIBS=ON
|
|
- CFLAGS=-Werror
|
|
- MACOSX_DEPLOYMENT_TARGET=10.8
|
|
- os: osx
|
|
sudo: false
|
|
name: "Cocoa static library"
|
|
env:
|
|
- BUILD_SHARED_LIBS=OFF
|
|
- CFLAGS=-Werror
|
|
- MACOSX_DEPLOYMENT_TARGET=10.8
|
|
script:
|
|
- if grep -Inr '\s$' src include docs tests examples CMake *.md .gitattributes .gitignore; then
|
|
echo Trailing whitespace found, aborting;
|
|
exit 1;
|
|
fi
|
|
- mkdir build
|
|
- cd build
|
|
- if test -n "${USE_WAYLAND}"; then
|
|
git clone git://anongit.freedesktop.org/wayland/wayland-protocols;
|
|
pushd wayland-protocols;
|
|
git checkout 1.15 && ./autogen.sh --prefix=/usr && make && sudo make install;
|
|
popd;
|
|
fi
|
|
- cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} -DGLFW_USE_WAYLAND=${USE_WAYLAND} ..
|
|
- cmake --build .
|
|
notifications:
|
|
email:
|
|
recipients:
|
|
- ci@glfw.org
|
|
on_success: never
|
|
on_failure: always
|