forked from Haivision/srt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (26 loc) · 916 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
language: cpp
dist: trusty
addons:
apt:
packages:
- tclsh
- pkg-config
- cmake
- libssl-dev
- build-essential
matrix:
include:
- env: BUILD_TYPE=Debug
- env: BUILD_TYPE=Release
- os: osx
osx_image: xcode7.3
env: BUILD_TYPE=Debug
install: brew install openssl
- os: osx
osx_image: xcode7.3
install: brew install openssl
env: BUILD_TYPE=Release
script:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then cmake . -DWITH_OPENSSL=/usr -DWITH_OPENSSL_LDFLAGS='-lssl -lcrypto' -DWITH_PTHREAD_LDFLAGS=-lpthread; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then cmake . -DWITH_OPENSSL_INCLUDE_DIR='/usr/local/opt/openssl/include' -DWITH_OPENSSL_LIBRARIES='libcrypto.dylib libssl.dylib' -DWITH_OPENSSL=/usr/local/opt/openssl -DWITH_PTHREAD_LDFLAGS='-lpthread'; fi
- make