-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
64 lines (52 loc) · 1.33 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
language: cpp
sudo: required
dist: trusty
compiler:
- gcc
- clang
os:
- linux
- osx
matrix:
exclude:
- os: osx
compiler: gcc
- os: linux
compiler: clang
before_install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew update;
brew install qt5;
brew install gcc;
brew link --overwrite gcc;
brew install g-node/homebrew-data/nixio;
fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
sudo apt-get install -q gcc-4.8 g++-4.8 libstdc++-4.8-dev libboost-all-dev -y;
sudo apt-get install libcppunit-dev libboost-all-dev libhdf5-serial-dev libhdf5-dev libhdf5-7 -y;
sudo apt-add-repository ppa:beineri/opt-qt562-trusty -y;
sudo apt-get update;
sudo apt-get install qt56-meta-minimal qt56x11extras -y;
sudo add-apt-repository ppa:gnode/nix -y;
sudo apt-get update;
sudo apt-get install libnix-dev -y;
g++ --version;
fi
install:
- if [ "$CXX" == "g++" ]; then
export CXX="g++-4.8";
export COMPILER="g++";
$CXX --version;
else
clang --version;
fi
script:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
/opt/qt56/bin/qt56-env.sh;
export CMAKE_PREFIX_PATH=/opt/qt56;
cmake . && make;
fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
export CMAKE_PREFIX_PATH=/usr/local/opt/qt5;
cmake . && make;
fi