language: cpp
dist: trusty
install:
script:
- make -C auto clobber
- make extensions
- make dist-src
- make clean && SYSTEM=linux            make
- make clean && SYSTEM=linux-osmesa     make
- make clean && SYSTEM=linux-egl        make
- make clean && SYSTEM=linux-clang      make
- make clean && SYSTEM=linux-clang-egl  make
- pushd build/cmake && git clean -xdf . && cmake -G 'Unix Makefiles' .                              && make && popd
- pushd build/cmake && git clean -xdf . && cmake -G 'Unix Makefiles' -DGLEW_OSMESA=ON .             && make && popd
- pushd build/cmake && git clean -xdf . && cmake -G 'Unix Makefiles' -DGLEW_EGL=ON -DGLEW_X11=OFF . && make && popd
addons:
  apt:
    packages:
    - git
    - cmake
    - dos2unix
    - libosmesa6-dev
    - libegl1-mesa-dev
  artifacts:
    paths:
    - $(ls *.zip *.tgz | tr "\n" ":")
    - $(find doc -type f | tr "\n" ":")
