Skip to content

Instantly share code, notes, and snippets.

@Techno-coder
Created September 17, 2017 06:15
Show Gist options
  • Save Techno-coder/b7fd6d243e982b2df04e5dbc9650bbb9 to your computer and use it in GitHub Desktop.
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
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