forked from openigtlink/OpenIGTLink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (51 loc) · 1.54 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
57
os:
- linux
- osx
language: cpp
compiler:
- gcc
- clang
install:
############################################################################
# Install a recent CMake (unless already installed on OS X)
############################################################################
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
mkdir -p ${DEPS_DIR} && cd ${DEPS_DIR}
CMAKE_URL="http://www.cmake.org/files/v3.5/cmake-3.5.2-Linux-x86_64.tar.gz"
mkdir cmake && travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake
export PATH=${DEPS_DIR}/cmake/bin:${PATH}
cd ..
else
if ! brew ls --version cmake &>/dev/null; then brew install cmake; fi
fi
- |
if [ "${TRAVIS_OS_NAME}" == "linux" ] ; then
sudo apt-get -y install yasm;
fi
if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
brew update;
brew install yasm;
fi
before_script:
- mkdir build
- cd build
script:
- cmake -DOpenIGTLink_PROTOCOL_VERSION_3=ON -DBUILD_VIDEOSTREAM=ON -DLINK_VP9=ON ..
- make
- cd ..
- mkdir TestBuild
- cd TestBuild
- cmake -DCMAKE_PREFIX_PATH:PATH=../build -DBUILD_VIDEOSTREAM=ON -DLINK_VP9=ON ../Testing
- make
- make test
#########################
# Test for version2 build
- cd ../build
- cmake -DOpenIGTLink_PROTOCOL_VERSION_3=OFF -DBUILD_VIDEOSTREAM=OFF ..
- make
- cd ../TestBuild
- cmake -DCMAKE_PREFIX_PATH:PATH=../build ../Testing
- make
- make test