-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
72 lines (62 loc) · 1.29 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
65
66
67
68
69
70
71
72
language: cpp
sudo: required
dist: trusty
osx_image: xcode9.2
install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
- if [ $TRAVIS_OS_NAME == osx ]; then brew update && brew install qt5 cppcheck; fi
- if [ $TRAVIS_OS_NAME = linux ]; then
source /opt/qt59/bin/qt59-env.sh
;
else
QTDIR="/usr/local/opt/qt5"
&& PATH="$QTDIR/bin:$PATH"
&& LDFLAGS=-L$QTDIR/lib
&& CPPFLAGS=-I$QTDIR/include
;
fi
- echo ${PATH}
- ${CXX} --version
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.9
- george-edison55-precise-backports
- sourceline: 'ppa:beineri/opt-qt593-trusty'
packages:
- cmake
- cmake-data
- gcc-5
- g++-5
- clang-3.9
- cppcheck
- qt59-meta-minimal
os:
- linux
- osx
compiler:
- gcc
- clang
env:
global:
- CMAKE_OPTIONS="-DOPTION_BUILD_EXAMPLES=On"
matrix:
- CMAKE_CONFIGURATION=release BUILD_DIR=build_release
- CMAKE_CONFIGURATION=debug BUILD_DIR=build_debug
matrix:
exclude:
- os: osx
compiler: gcc
script:
- mkdir build
- cd build
- cmake .. && make
- cmake --build . --target test
- cmake --build . --target check-all
- cmake --build . --target compilation_test
notifications:
email: false
branches:
only:
- master