language: rust
notifications:
    irc: "irc.mozilla.org#piston-internals"
os:
    - linux
    - osx
install:
    # GLFW 3
    - sudo apt-get install libXxf86vm-dev xdotool
    - git clone https://github.com/glfw/glfw.git
    - cd glfw
    - git checkout 3.0.3
    - cmake -DCMAKE_C_FLAGS=-fPIC -DGLFW_BUILD_EXAMPLES=OFF -DGLFW_BUILD_TESTS=OFF -DGLFW_BUILD_DOCS=OFF .
    - make
    - sudo make install
    - cd ..
    # SDL2
    - curl -O http://www.libsdl.org/release/SDL2-2.0.0.tar.gz
    - tar -xzvf SDL2-2.0.0.tar.gz
    - (cd SDL2-2.0.0 && ./configure && make && sudo make install)
    # SDL2 mixer
    - curl -O http://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.0.tar.gz
    - tar -xzvf SDL2_mixer-2.0.0.tar.gz
    - (cd SDL2_mixer-2.0.0 && ./configure && make && sudo make install)
script:
    - (cd gfx_cube && cargo build -v)
    - (cd image && cargo build -v)
    - (cd paint && cargo build -v)
    - (cd music && cargo build -v)
    - (cd user_input && cargo build -v)
    - (cd sprite && cargo build -v)

language: rust
notifications:
    irc: "irc.mozilla.org#piston-internals"
os:
    - linux
    - osx
before_install:
    - sudo add-apt-repository -y ppa:kalakris/cmake
    - sudo apt-get update -qq
install:
    # CMake, require newer version, than in Travis
    - sudo apt-get install libXxf86vm-dev cmake
    # SDL2
    - curl -O http://www.libsdl.org/release/SDL2-2.0.0.tar.gz
    - tar -xzvf SDL2-2.0.0.tar.gz
    - (cd SDL2-2.0.0 && ./configure && make && sudo make install)
script:
    - (cd gfx_cube && cargo build -v)
    - (cd image && cargo build -v)
    - (cd paint && cargo build -v)
    - (cd deform && cargo build -v)
    - (cd user_input && cargo build -v)
    - (cd sprite && cargo build -v)

Fix Travis: fix glfw build, remove music example, add deform example
Fix Travis: fix glfw build, remove music example, add deform example
