-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
59 lines (47 loc) · 1.15 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
# Language selection
language: cpp
cache: ccache
# Environment variables:
matrix:
include:
#### linux
- os: linux
env: EXTRA_BUILD_FLAGS="" CC=gcc-5 CXX=g++-5
#### osx
- os: osx
env: EXTRA_BUILD_FLAGS="" CC=gcc CXX=g++
env:
global:
- BUILD_FLAGS="-DCMAKE_BUILD_TYPE=Release"
# Ubuntu 14.04 LTS (trusty)
dist: trusty
# No need for sudo
sudo: false
# Compilation dependencies
addons:
apt:
sources:
- llvm-toolchain-trusty-5.0
packages:
- qtbase5-dev
# Actual compilation script
before_install:
# - |
# if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
# brew update
# # seems to be needed on Travis due to conflicts with gcc otherwise
# # see https://github.com/travis-ci/travis-ci/issues/8826
# brew cask uninstall oclint
# brew install ccache
# export PATH="/usr/local/opt/ccache/libexec:$PATH"
# brew install libusb
# brew install freeglut
# brew install qt5
# brew link qt5 --force
# fi
install:
- mkdir build install
- cd build
- cmake $BUILD_FLAGS $EXTRA_BUILD_FLAGS -DCMAKE_INSTALL_PREFIX=$TRAVIS_BUILD_DIR/install ..
script:
- make -j 2