Skip to content
Snippets Groups Projects
Select Git revision
  • d6b9d00cebaf2f57cf7e6c5d1730920f3b058822
  • for-vairdraw default protected
  • multi-context-windows
3 results

.travis.yml

Blame
  • .travis.yml 2.26 KiB
    language: c
    compiler: clang
    branches:
        only:
            - ci
            - master
    sudo: false
    dist: trusty
    addons:
        apt:
            packages:
                - cmake
                - libxrandr-dev
                - libxinerama-dev
                - libxcursor-dev
                - libxi-dev
    matrix:
        include:
            - os: linux
              env:
                  - BUILD_SHARED_LIBS=ON
                  - CFLAGS=-Werror
            - os: linux
              env:
                  - BUILD_SHARED_LIBS=OFF
                  - CFLAGS=-Werror
            - os: linux
              sudo: required
              addons:
                  apt:
                      packages:
                          - libwayland-dev
                          - libxkbcommon-dev
                          - libegl1-mesa-dev
              env:
                  - USE_WAYLAND=ON
                  - BUILD_SHARED_LIBS=ON
                  - CFLAGS=-Werror
            - os: linux
              sudo: required
              addons:
                  apt:
                      packages:
                          - libwayland-dev
                          - libxkbcommon-dev
                          - libegl1-mesa-dev
              env:
                  - USE_WAYLAND=ON
                  - BUILD_SHARED_LIBS=OFF
                  - CFLAGS=-Werror
            - os: osx
              env:
                  - BUILD_SHARED_LIBS=ON
                  - CFLAGS=-Werror
            - os: osx
              env:
                  - BUILD_SHARED_LIBS=OFF
                  - CFLAGS=-Werror
    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 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