language: c++
compiler:
    - gcc

before_install:
    - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
    - sudo apt-get update -qq
    - if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-6; fi
    - if [ "$CXX" = "g++" ]; then export CXX="g++-6" CC="gcc-6"; fi
    - $CXX --version
    - sudo apt-get install libcppunit-dev

    - ls /usr/share/ | grep -i cmake

    - cmake --version
    - sudo wget http://raw.github.com/Kitware/CMake/master/Modules/FindGLEW.cmake -O /usr/share/cmake-3.9/Modules/FindGLEW.cmake

    - chmod +x ".travis-scripts/before-install-sfml.sh"
    - chmod +x ".travis-scripts/before-install-tinyxml2.sh"

install:
    - .travis-scripts/before-install-sfml.sh
    - .travis-scripts/before-install-tinyxml2.sh

script: cmake . && make


language: c++
compiler:
    - gcc

before_install:
    - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
    - sudo apt-get update -qq
    - if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-6; fi
    - if [ "$CXX" = "g++" ]; then export CXX="g++-6" CC="gcc-6"; fi
    - sudo apt-get install libcppunit-dev

    - $CXX --version
    - cmake --version

    - chmod +x ".travis-scripts/before-install-sfml.sh"
    - chmod +x ".travis-scripts/before-install-tinyxml2.sh"
    - wget http://raw.github.com/Kitware/CMake/master/Modules/FindGLEW.cmake -O cmake/Modules/FindGLEW.cmake

install:
    - .travis-scripts/before-install-sfml.sh
    - .travis-scripts/before-install-tinyxml2.sh

script: cmake . && make


Install FindGLEW to local cmake modules
Install FindGLEW to local cmake modules
