2015-04-14 23:47:17 +02:00
|
|
|
language: c
|
|
|
|
compiler: clang
|
|
|
|
branches:
|
|
|
|
only:
|
2016-02-04 14:58:44 +01:00
|
|
|
- ci
|
2015-04-14 23:47:17 +02:00
|
|
|
- master
|
2019-05-17 16:58:50 +02:00
|
|
|
- 3.3-stable
|
2017-11-16 16:03:42 +01:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
2019-05-17 16:10:28 +02:00
|
|
|
dist: xenial
|
2019-05-17 16:15:59 +02:00
|
|
|
name: "X11 shared library"
|
2019-05-17 16:10:28 +02:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libxrandr-dev
|
|
|
|
- libxinerama-dev
|
|
|
|
- libxcursor-dev
|
|
|
|
- libxi-dev
|
2020-07-06 23:15:20 +02:00
|
|
|
- libxext-dev
|
2018-01-30 16:37:45 +01:00
|
|
|
env:
|
|
|
|
- BUILD_SHARED_LIBS=ON
|
|
|
|
- CFLAGS=-Werror
|
2017-11-16 16:03:42 +01:00
|
|
|
- os: linux
|
2019-05-17 16:10:28 +02:00
|
|
|
dist: xenial
|
2019-05-17 16:15:59 +02:00
|
|
|
name: "X11 static library"
|
2019-05-17 16:10:28 +02:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libxrandr-dev
|
|
|
|
- libxinerama-dev
|
|
|
|
- libxcursor-dev
|
|
|
|
- libxi-dev
|
2020-07-06 23:15:20 +02:00
|
|
|
- libxext-dev
|
2018-01-30 16:37:45 +01:00
|
|
|
env:
|
|
|
|
- BUILD_SHARED_LIBS=OFF
|
|
|
|
- CFLAGS=-Werror
|
2017-11-16 16:03:42 +01:00
|
|
|
- os: linux
|
2020-09-01 16:55:53 +02:00
|
|
|
dist: focal
|
2019-05-17 16:15:59 +02:00
|
|
|
name: "Wayland shared library"
|
2017-11-16 16:03:42 +01:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
2020-09-01 16:55:53 +02:00
|
|
|
- wayland-protocols
|
2017-11-16 16:03:42 +01:00
|
|
|
- libwayland-dev
|
|
|
|
- libxkbcommon-dev
|
|
|
|
- libegl1-mesa-dev
|
|
|
|
env:
|
|
|
|
- USE_WAYLAND=ON
|
|
|
|
- BUILD_SHARED_LIBS=ON
|
2018-01-30 16:37:45 +01:00
|
|
|
- CFLAGS=-Werror
|
2017-11-16 16:03:42 +01:00
|
|
|
- os: linux
|
2020-09-01 16:55:53 +02:00
|
|
|
dist: focal
|
2019-05-17 16:15:59 +02:00
|
|
|
name: "Wayland static library"
|
2017-11-16 16:03:42 +01:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
2020-09-01 16:55:53 +02:00
|
|
|
- wayland-protocols
|
2017-11-16 16:03:42 +01:00
|
|
|
- libwayland-dev
|
|
|
|
- libxkbcommon-dev
|
|
|
|
- libegl1-mesa-dev
|
|
|
|
env:
|
|
|
|
- USE_WAYLAND=ON
|
|
|
|
- BUILD_SHARED_LIBS=OFF
|
2018-01-30 16:37:45 +01:00
|
|
|
- CFLAGS=-Werror
|
2020-05-19 13:24:49 +02:00
|
|
|
- os: linux
|
|
|
|
dist: bionic
|
|
|
|
name: "Null shared library"
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libosmesa6-dev
|
|
|
|
env:
|
|
|
|
- BUILD_SHARED_LIBS=ON
|
|
|
|
- USE_OSMESA=ON
|
|
|
|
- CFLAGS=-Werror
|
|
|
|
- os: linux
|
|
|
|
dist: bionic
|
|
|
|
name: "Null static library"
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libosmesa6-dev
|
|
|
|
env:
|
|
|
|
- BUILD_SHARED_LIBS=OFF
|
|
|
|
- USE_OSMESA=ON
|
|
|
|
- CFLAGS=-Werror
|
2017-11-16 16:03:42 +01:00
|
|
|
- os: osx
|
2019-05-17 16:15:59 +02:00
|
|
|
name: "Cocoa shared library"
|
2018-01-30 16:37:45 +01:00
|
|
|
env:
|
|
|
|
- BUILD_SHARED_LIBS=ON
|
|
|
|
- CFLAGS=-Werror
|
2019-12-25 22:54:23 +01:00
|
|
|
- MACOSX_DEPLOYMENT_TARGET=10.8
|
2017-11-16 16:03:42 +01:00
|
|
|
- os: osx
|
2019-05-17 16:15:59 +02:00
|
|
|
name: "Cocoa static library"
|
2018-01-30 16:37:45 +01:00
|
|
|
env:
|
|
|
|
- BUILD_SHARED_LIBS=OFF
|
|
|
|
- CFLAGS=-Werror
|
2019-12-25 22:54:23 +01:00
|
|
|
- MACOSX_DEPLOYMENT_TARGET=10.8
|
2015-04-14 23:47:17 +02:00
|
|
|
script:
|
2019-05-17 16:31:42 +02: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 15:44:20 +01:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2020-05-19 13:24:49 +02:00
|
|
|
- cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} -DGLFW_USE_WAYLAND=${USE_WAYLAND} -DGLFW_USE_OSMESA=${USE_OSMESA} ..
|
2016-02-04 13:23:54 +01:00
|
|
|
- cmake --build .
|
2015-04-14 23:47:17 +02:00
|
|
|
notifications:
|
2016-02-04 14:58:44 +01:00
|
|
|
email:
|
|
|
|
recipients:
|
|
|
|
- ci@glfw.org
|
2015-04-14 23:47:17 +02:00
|
|
|
on_success: never
|
|
|
|
on_failure: always
|