Created
September 17, 2017 06:15
-
-
Save Techno-coder/b7fd6d243e982b2df04e5dbc9650bbb9 to your computer and use it in GitHub Desktop.
Travis file that supports a CMakeLists file that uses Conan to build SFML
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: cpp | |
before_script: | |
- mkdir cmake | |
- pushd cmake | |
- wget https://cmake.org/files/v3.8/cmake-3.8.0-Linux-x86_64.sh | |
- chmod +x cmake-*-Linux-x86_64.sh | |
- ./cmake-*-Linux-x86_64.sh --exclude-subdir --skip-license | |
- export PATH="${PWD}/bin:$PATH" | |
- popd | |
- pip install conan | |
matrix: | |
include: | |
# Regular linux build | |
- os: linux | |
compiler: clang++ | |
addons: | |
apt: | |
packages: | |
- libc++-dev | |
- libglew-dev | |
- libsndfile1-dev | |
- libopenal-dev | |
- libfreetype6-dev | |
- libx11-xcb-dev | |
- udev | |
- libudev-dev | |
- libxcb-image0 | |
- libxcb-image0-dev | |
script: | |
- mkdir build | |
- cd build | |
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -stdlib=libc++" .. | |
- make | |
- make test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment