-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
67 lines (62 loc) · 1.72 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
# Build matrix / environment variable are explained on:
# http://about.travis-ci.org/docs/user/build-configuration/
# This file can be validated on:
# http://lint.travis-ci.org/
language: cpp
install:
# /usr/bin/gcc is 5.4 always, but gcc-X.Y is available.
- if [ "$CXX" = "g++" ]; then export CXX="g++-7" CC="gcc-7"; fi
# /usr/bin/clang is 3.4, lets override with modern one.
- if [ "$CXX" = "clang++" ] && [ "$TRAVIS_OS_NAME" = "linux" ]; then export CXX="clang++-7" CC="clang-7"; fi
- echo ${PATH}
- echo ${CXX}
- ${CXX} --version
- ${CXX} -v
- cmake --version
# build gtest library
- sudo wget https://github.com/google/googletest/archive/release-1.8.0.tar.gz
- sudo tar xf release-1.8.0.tar.gz
- cd googletest-release-1.8.0
- sudo cmake . -DCMAKE_INSTALL_PREFIX=/usr/local
- sudo make install
- cd "${TRAVIS_BUILD_DIR}"
addons:
apt:
# List of whitelisted in travis packages for ubuntu-precise can be found here:
# https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
# List of whitelisted in travis apt-sources:
# https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-7
packages:
- gcc-7
- g++-7
- clang-7
- valgrind
- cmake
os:
- linux
- osx
compiler:
- gcc
- clang
matrix:
exclude:
- os: osx
compiler: gcc
before_script:
- mkdir build
- cd build
- cmake .. -DQT_ENABLED=OFF -DCMAKE_BUILD_TYPE=Debug -DDEVELOPER_ENABLE_TESTS=ON -DDEVELOPER_ENABLE_COVERALLS=ON
script:
- make
- CTEST_OUTPUT_ON_FAILURE=1 make test
after_success:
- make coveralls
notifications:
recipients:
email:
on_success: always
on_failure: always