-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
37 lines (35 loc) · 1.27 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
language: cpp
os:
- linux
- osx
compiler:
- gcc
- clang
addons:
homebrew:
packages:
- gcc
- qt@4
taps:
- cartr/qt4
before_install:
- "export DISPLAY=:99.0"
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then (sh -e /etc/init.d/xvfb start); fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then (sudo /opt/X11/bin/Xvfb :99 -ac -screen 0 1280x1024x24 &); fi
#- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi
#- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install qt; fi
#- if [ "$TRAVIS_OS_NAME" == "osx" -a "$CXX" == "g++" ]; then brew unlink gcc; fi
#- if [ "$TRAVIS_OS_NAME" == "osx" -a "$CXX" == "g++" ]; then brew install gcc; fi
#- if [ "$TRAVIS_OS_NAME" == "osx" -a "$CXX" == "g++" ]; then ln -s /usr/local/bin/gcc-5 /usr/local/bin/gcc; fi
#- if [ "$TRAVIS_OS_NAME" == "osx" -a "$CXX" == "g++" ]; then ln -s /usr/local/bin/g++-5 /usr/local/bin/g++; fi
- if [ "$TRAVIS_OS_NAME" == "osx" -a "$CXX" == "g++" ]; then export PATH="/usr/local/bin:$PATH"; fi
- if [ "$TRAVIS_OS_NAME" == "osx" -a "$CXX" == "g++" ]; then brew list; fi
- if [ "$TRAVIS_OS_NAME" == "osx" -a "$CXX" == "g++" ]; then brew cask list; fi
script:
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release ..
- make
- "export DISPLAY=:99.0"
- cd tests
- ./runTests