language: c

os:
    - linux

compiler:
    - gcc
    - clang

before_install:
    - if [ $TRAVIS_OS_NAME == linux ]; then sudo add-apt-repository -y ppa:pyglfw/pyglfw && sudo apt-get update -qq && sudo apt-get install -y --no-install-recommends libglfw3 libglfw3-dev libglew-dev; fi

script:
    - make -C demo/glfw_opengl3 CFLAGS="-Wall -DINCLUDE_ALL"
    - make -C demo/glfw_opengl2
    - make -C example
