Skip to content

Commit

Permalink
Add .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean-Der committed Nov 26, 2019
1 parent 014b8ff commit 939224c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 14 deletions.
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: cpp

os:
- linux
- osx

compiler:
- gcc
- clang

branches:
only:
- master

cache:
- directories:
- $HOME/.cache

script:
- mkdir build && cd build
- cmake ..
- make
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ To download run the following command:
### 2. Configure
Create a build directory in the newly checked out repository, and execute CMake from it.

`mkdir -p amazon-kinesis-video-streams-webrtc-sdk-c/build && cd amazon-kinesis-video-streams-webrtc-sdk-c/build && cmake ..`
`mkdir -p amazon-kinesis-video-streams-webrtc-sdk-c/build; cd amazon-kinesis-video-streams-webrtc-sdk-c/build; cmake .. `


*TODO* Document all the available options
Expand Down
16 changes: 3 additions & 13 deletions cmake-scripts/libusrsctp-CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,12 @@ project(libusrsctp-download NONE)

include(ExternalProject)

if(APPLE)
# 0.9.3.0 has issue building on Mac
set(git_tag "origin/master")
else()
if(UNIX)
set(cflags "-Wno-error=format-truncation")
endif()
set(git_tag "0.9.3.0")
endif()

ExternalProject_Add(project_libusrsctp
GIT_REPOSITORY https://github.com/sctplab/usrsctp.git
GIT_TAG ${git_tag}
GIT_TAG 913de3599feded8322882bdae69f346da5a258fc
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/build
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=${CMAKE_SOURCE_DIR}/../local/ -DCMAKE_C_FLAGS="${cflags}"
-DCMAKE_INSTALL_PREFIX=${CMAKE_SOURCE_DIR}/../local/ -DCMAKE_C_FLAGS="-Wno-error"
BUILD_ALWAYS TRUE
TEST_COMMAND ""
)
)

0 comments on commit 939224c

Please sign in to comment.