forked from paceholder/nodeeditor
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
54 lines (47 loc) · 1.58 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
language: none
matrix:
include:
- os: linux
dist: trusty
compiler: clang
env: CXX=clang++-3.8 CC=clang-3.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.8
packages:
- clang-3.8
# VERY IMPORTANT TO INSTALL g++-5! clang doesn't come with a standard library, so
# we need to install g++-5 for a C++14 standard library.
- g++-5
- os: linux
dist: trusty
compiler: gcc
env: CXX=g++-5 CC=gcc-5 QT=5
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- os: osx
osx_image: xcode8.3
compiler: clang
env: CMAKE_PREFIX_PATH=/usr/local/Cellar/qt/5.11.2:$CMAKE_PREFIX_PATH
git:
depth: 10
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install qt; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install build-essential libgl1-mesa-dev ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -yy install qtbase5-dev ; fi
script:
- mkdir build
- cd build
- cmake -DCMAKE_VERBOSE_MAKEFILE=$VERBOSE_BUILD .. && make -j
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then xvfb-run --server-args="-screen 0 1024x768x24" ctest --output-on-failure; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ctest --output-on-failure; fi
notifications:
email: false