Skip to content
This repository was archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
add travis
Browse files Browse the repository at this point in the history
  • Loading branch information
microcai committed Mar 3, 2013
1 parent fab1bb0 commit 112e5af
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 3 deletions.
29 changes: 29 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
language: cpp
compiler:
- gcc
- clang

before_install:
- sudo add-apt-repository -y ppa:28msec/boost
- sudo add-apt-repository -y ppa:jon-severinsson/ffmpeg
- sudo apt-get update
- sudo apt-get install -qq boost1.50 libsdl-dev
- sudo apt-get install -qq libswresample-dev libavformat-dev libavcodec-dev libavutil-dev libswscale-dev

before_script:
cmake .

script:
make

branches:
only:
- master
notifications:
recipients:
- [email protected]
- [email protected]
email:
on_success: change
on_failure: always

2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_STATIC_RUNTIME ON)

find_package( Boost 1.51 REQUIRED COMPONENTS thread filesystem)
find_package( Boost 1.50 REQUIRED COMPONENTS thread filesystem)

#dont't define this, libbt need depreated api
include_directories(${Boost_INCLUDE_DIRS})
Expand Down
2 changes: 1 addition & 1 deletion audio/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
find_package( Boost 1.51 COMPONENTS thread)
find_package( Boost 1.50 COMPONENTS thread)

add_library(avaudio STATIC sdl_render.cpp)
target_link_libraries(avaudio ${Boost_LIBRARIES})
2 changes: 1 addition & 1 deletion linux/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
find_package(SDL REQUIRED)
find_package(X11)
find_package( Boost 1.51 COMPONENTS filesystem)
find_package( Boost 1.50 COMPONENTS filesystem)

include_directories(${SDL_INCLUDE_DIR})

Expand Down

0 comments on commit 112e5af

Please sign in to comment.