-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
48 lines (43 loc) · 1.55 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
language : cpp
matrix:
include:
- os: osx
osx_image: xcode9.2
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- libssl-dev
- python-virtualenv
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7 && BUILD_TYPE=Release"
before_install:
- |
if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
CMAKE_URL="https://cmake.org/files/v3.10/cmake-3.10.1-Linux-x86_64.tar.gz"
mkdir -p ${TRAVIS_BUILD_DIR}/deps/cmake && travis_retry wget --no-check-certificate --quiet -O - "${CMAKE_URL}" | tar --strip-components=1 -xz -C ${TRAVIS_BUILD_DIR}/deps/cmake
export PATH="${TRAVIS_BUILD_DIR}/deps/cmake/bin:${PATH}";
virtualenv ~/wstest
source ~/wstest/bin/activate
pip install autobahntestsuite
else
brew update && brew upgrade cmake || brew install cmake;
brew install zlib
fi
script:
- eval "${MATRIX_EVAL}"
- mkdir build
- cd build
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_SHARED_LIBS=ON -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_C_COMPILER="$CC" -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl .. && make;
else
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_SHARED_LIBS=ON -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_C_COMPILER="$CC" .. && make;
ctest -V;
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_SHARED_LIBS=OFF -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_C_COMPILER="$CC" .. && make;
ctest -V;
fi
notifications:
email: false