-
Notifications
You must be signed in to change notification settings - Fork 31
/
.travis.yml
32 lines (29 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
language: cpp
matrix:
include:
- dist: xenial
compiler: clang
before_install:
- sudo add-apt-repository -y ppa:beineri/opt-qt-5.12.3-xenial
- sudo apt-get -qy update
install:
- sudo apt-get -qy install qt512svg qt512base qt512translations qt512tools mesa-common-dev libglu1-mesa-dev freeglut3-dev
- os: osx
osx_image: xcode10
before_install:
- travis_wait 30 brew update
before_script:
- sudo Xvfb :99 -ac -screen 0 1024x768x8 &
install:
- brew install cppcheck
- brew install qt5
- brew link --force qt && sudo ln -s /usr/local/Cellar/qt/5.13.0/mkspecs /usr/local/mkspecs && sudo ln -s /usr/local/Cellar/qt/5.13.0/plugins /usr/local/plugins
#env:
#- CMAKE_PREFIX_PATH=/usr/local/Cellar/qt/5.13.0
#- PATH=/usr/local/opt/qt5/bin:$PATH
script:
- mkdir -p build
- pushd build
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then (cmake ../ && make -j4 && xvfb-run env CTEST_OUTPUT_ON_FAILURE=1 make test) fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then (cmake ../ && make -j4 && env CTEST_OUTPUT_ON_FAILURE=1 make test) fi
- popd