-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
49 lines (42 loc) · 1.24 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
language: c++
sudo: false
# Do not build branches of the form "pr/*". By prefixing pull requests coming
# from branches inside the repository with pr/, this avoids building both the
# branch push _and_ the pull request.
branches:
except: /pr\/.*/
addons:
apt:
packages:
- valgrind
- g++-7
sources: &sources
- ubuntu-toolchain-r-test
matrix:
include:
# GCC 7
- os: linux
env: COMPILER=g++-7
compiler: gcc
# GCC 4.8
- os: linux
env: COMPILER=g++
compiler: gcc
install:
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
- mkdir -p ${DEPS_DIR} && cd ${DEPS_DIR}
- if [[ "${COMPILER}" != "" ]]; then export CXX=${COMPILER}; fi
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
CMAKE_URL="https://cmake.org/files/v3.10/cmake-3.10.2-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}
else
brew upgrade cmake || brew install cmake
fi
- cmake --version
script:
- cd ${TRAVIS_BUILD_DIR}
- mkdir build && cd build && cmake -DBUILD_TESTS=ON -DSVBB_BUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=Release ..
- make
- ctest