-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (42 loc) · 1.17 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
sudo: false
language: cpp
compiler:
- gcc
- clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- qt4-dev-tools
- libxt-dev
cache:
directories:
- $HOME/cmake-3.1.1-Linux-x86_64
- $HOME/VTK-Install
- $HOME/boost_1_56_0
env:
global:
- VTK_DIR=$HOME/VTK-Install/lib/cmake/vtk-6.3
- BOOST_ROOT=$HOME/boost_1_56_0
matrix:
- CASE=CLI CMAKE_ARGS="-DOGS_BUILD_GUI=OFF -DOGS_BUILD_UTILS=ON"
- CASE=GUI CMAKE_ARGS="-DOGS_BUILD_GUI=ON -DOGS_BUILD_CLI=OFF -DOGS_BUILD_TESTS=OFF"
before_install:
- bash scripts/travis/cmake.sh
- bash scripts/travis/vtk.sh
- bash scripts/travis/boost.sh
before_script:
- export PATH=$HOME/cmake-3.1.1-Linux-x86_64/bin:$PATH
- if [ "$CC" == "gcc" ]; then export CXX=g++-4.8 CC=gcc-4.8; fi
script:
- mkdir build
- cd build
- cmake $CMAKE_ARGS -DCMAKE_BUILD_TYPE=Debug ..
- make -j 2
- if [[ "$CASE" == "CLI" ]]; then make tests; fi
notifications:
hipchat:
rooms:
secure: kmLyt50IGFuK96xbD+VzWRRzF6UU6SdVpsn1bolKQaTCCj1rz4H1np1iUML0jeGn86DAkkHPWmFXaS2JN0EoX8L74HavJSkUfIa49cegk0je986fxucaUV1fnhFIRh6EGkpqvqE+uXs/wKHkzrkYbpHaRvJgmxQSV9kR4yRuAmw=