This repository has been archived by the owner on Jul 16, 2020. It is now read-only.
forked from Haivision/srt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (54 loc) · 1.92 KB
/
.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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
before_install: brew update
install: brew install openssl gnutls nettle
- os: osx
osx_image: xcode7.3
before_install: brew update
install: brew install openssl gnutls nettle
env: BUILD_TYPE=Release
- os: linux
compiler: x86_64-w64-mingw32-g++
addons:
apt:
packages:
- gcc-mingw-w64-base
- binutils-mingw-w64-x86-64
- gcc-mingw-w64-x86-64
- gcc-mingw-w64
- g++-mingw-w64-x86-64
before_script:
- git clone https://github.com/openssl/openssl.git
- cd openssl
- git checkout origin/OpenSSL_1_1_0-stable -b OpenSSL_1_1_0-stable
- ./Configure --cross-compile-prefix=x86_64-w64-mingw32- mingw64
- make
- cd ..
env: BUILD_TYPE=Release
script:
- if [ "$TRAVIS_COMPILER" == "x86_64-w64-mingw32-g++" ]; then
export CC="x86_64-w64-mingw32-gcc";
export CXX="x86_64-w64-mingw32-g++";
cmake . -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DENABLE_UNITTESTS="ON" -DUSE_OPENSSL_PC="OFF" -DOPENSSL_ROOT_DIR="$PWD/openssl" -DCMAKE_SYSTEM_NAME="Windows";
elif [ "$TRAVIS_OS_NAME" == "linux" ]; then
cmake . -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DENABLE_UNITTESTS="ON";
elif [ "$TRAVIS_OS_NAME" == "osx" ]; then
cmake . -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DENABLE_UNITTESTS="ON" -DCMAKE_PREFIX_PATH=/usr/local/opt/openssl;
fi
- make
- if [ "$TRAVIS_COMPILER" != "x86_64-w64-mingw32-g++" ]; then ctest --extra-verbose; fi