-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
76 lines (66 loc) · 2.18 KB
/
.travis.yml
File metadata and controls
76 lines (66 loc) · 2.18 KB
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
73
74
75
language: cpp
sudo: false
matrix:
include:
- os: linux
compiler: gcc
addons: &gcc7
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-7']
env: CXX_EVAL="g++-7" CC_EVAL="gcc-7" BUILD_TYPE='Release'
- os: linux
compiler: gcc
addons: *gcc7
env: CXX_EVAL="g++-7" CC_EVAL="gcc-7" BUILD_TYPE='Debug'
- os: linux
compiler: clang
env: BUILD_TYPE='Release' CXX_EVAL="clang++-5.0" CC_EVAL="clang-5.0"
addons:
apt:
sources:
- sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-5.0 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
- ubuntu-toolchain-r-test
packages: ['clang-5.0']
- os: linux
compiler: clang
env: BUILD_TYPE='Debug' CXX_EVAL="clang++-5.0" CC_EVAL="clang-5.0"
addons:
apt:
sources:
- sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-5.0 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
- ubuntu-toolchain-r-test
packages: ['clang-5.0']
- os: osx
osx_image: xcode8.3
compiler: clang
env: CXX_EVAL="clang++" CC_EVAL="clang" BUILD_TYPE='Debug'
- os: osx
osx_image: xcode8.3
compiler: clang
env: CXX_EVAL="clang++" CC_EVAL="clang" BUILD_TYPE='Release'
before_install:
- export CXX=$CXX_EVAL
- export CC=$CC_EVAL
- export CXXFLAGS="-Werror"
install:
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
- mkdir -p ${DEPS_DIR} && cd ${DEPS_DIR}
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
CMAKE_URL="https://cmake.org/files/v3.9/cmake-3.9.4-Linux-x86_64.tar.gz"
mkdir cmake && travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake
export PATH=${DEPS_DIR}/cmake/bin:${PATH}
elif [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
which cmake || brew install cmake
fi
before_script:
- which $CXX
- $CXX --version
- cd ${TRAVIS_BUILD_DIR}
- cmake -H. -B_builds -DBUILD_TESTS=ON
script:
- cmake --build _builds
- cmake --build _builds --target test -- ARGS=--verbose