forked from G-Node/nix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (55 loc) · 1.32 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
58
59
60
61
62
63
64
65
language: cpp
sudo: required
dist: trusty
compiler:
- gcc
- clang
os:
- linux
- osx
env:
- FS_BACKEND=ON
- FS_BACKEND=OFF
matrix:
exclude:
- os: osx
compiler: gcc
before_install:
- if [[ "$CXX" == "g++" ]];
then
pip install --upgrade pip;
export CTEST_ARGS=-V;
pip install --user cpp-coveralls;
else
export CTEST_ARGS=-VV;
fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
sudo apt-get update -qq;
sudo apt-get install -q gcc-4.8 g++-4.8 libstdc++-4.8-dev libcppunit-dev libboost-all-dev libhdf5-serial-dev libhdf5-dev libhdf5-7 -y;
sudo apt-get install libyaml-cpp-dev -y;
fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew update;
brew install cmake boost cppunit homebrew/science/hdf5 yaml-cpp;
brew --env;
fi
- if [ "$CXX" == "g++" ]; then
g++ --version;
else clang --version;
fi
install:
- if [ "$CXX" == "g++" ]; then
export CXX="g++-4.8";
export COMPILER="g++";
$CXX --version;
else
clang --version;
fi
script:
- ctest ${CTEST_ARGS} --output-on-failure -S .travis.ctest
after_success:
- if [[ "$COMPILER" == "g++" ]]; then
coveralls -b build -E ".*CMakeFiles.*" -e cli -e test -e tmp --gcov gcov-4.8 --gcov-options '\-lp' > /dev/null;
fi
notifications:
irc: "chat.freenode.net#gnode"