diff options
| author | Ahmad Fatoum <[email protected]> | 2018-05-09 17:59:09 +0200 |
|---|---|---|
| committer | Ahmad Fatoum <[email protected]> | 2018-05-11 01:25:13 +0200 |
| commit | a0f9c2b1eb4fbc25472a3f164c7af349fcc0562e (patch) | |
| tree | 778ff14eae7a0d20df5e652fffd16366cf2313ba | |
| parent | 7243cebad1e80eba932cfab8d512133a194a01cb (diff) | |
| download | raylib-a0f9c2b1eb4fbc25472a3f164c7af349fcc0562e.tar.gz raylib-a0f9c2b1eb4fbc25472a3f164c7af349fcc0562e.zip | |
Travis CI: Test Wayland configuration as well
| -rw-r--r-- | .travis.yml | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 13123045..2d9a774f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,6 +18,15 @@ matrix: - os: linux env: ARCH=amd64 GLFW=SYSTEM sudo: required + - os: linux + env: USE_WAYLAND=ON ARCH=amd64 + sudo: required + addons: + apt: + packages: + - libwayland-dev + - libxkbcommon-dev + - libegl1-mesa-dev - os: osx env: ARCH=universal @@ -49,7 +58,15 @@ before_install: script: - mkdir build - cd build - - cmake $CMAKE_ARCH_ARGS -DMACOS_FATLIB=ON -DSTATIC=ON -DSHARED=ON -DBUILD_EXAMPLES=ON -DBUILD_GAMES=ON -DUSE_EXTERNAL_GLFW=IF_POSSIBLE .. + - 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; + sudo dpkg -i extra-cmake-modules_5.38.0a-0ubuntu1_amd64.deb; + git clone git://anongit.freedesktop.org/wayland/wayland-protocols; + pushd wayland-protocols; + git checkout 1.12 && ./autogen.sh --prefix=/usr && make && sudo make install; + popd; + fi + - cmake $CMAKE_ARCH_ARGS -DMACOS_FATLIB=ON -DSTATIC=ON -DSHARED=ON -DBUILD_EXAMPLES=ON -DBUILD_GAMES=ON -DUSE_EXTERNAL_GLFW=IF_POSSIBLE -DUSE_WAYLAND=${USE_WAYLAND} .. - make VERBOSE=1 - if [ "$GLFW" != "SYSTEM" ]; then make package; fi; - sudo make install |
