-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
66 lines (63 loc) · 1.8 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
dist: precise
language: generic
addons:
apt:
sources: &sources
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.7
- llvm-toolchain-precise-3.8
cache:
apt: true
matrix:
include:
- os: osx
compiler: clang
- os: linux
compiler: gcc
env: COMPILER_NAME=gcc CXX=g++-4.9 CC=gcc-4.9
addons:
apt:
packages:
- g++-4.9
- gcc-4.9
sources: *sources
- os: linux
compiler: gcc
env: COMPILER_NAME=gcc CXX=g++-5 CC=gcc-5
addons:
apt:
packages:
- g++-5
- gcc-5
sources: *sources
- os: linux
compiler: clang
env: COMPILER_NAME=clang CXX=clang++-3.7 CC=clang-3.7
addons:
apt:
packages:
- clang-3.7
sources: *sources
install:
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
- mkdir -p "${DEPS_DIR}"
- cd "${DEPS_DIR}"
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
if [[ -z "$(ls -A ${DEPS_DIR}/cmake/bin)" ]]; then
CMAKE_URL="https://cmake.org/files/v3.6/cmake-3.6.2-Linux-x86_64.tar.gz"
mkdir -p cmake
travis_retry wget --no-check-certificate --quiet -O - "${CMAKE_URL}" |
tar --strip-components=1 -xz -C cmake
fi
export PATH="${DEPS_DIR}/cmake/bin:${PATH}"
else
if ! brew ls --version cmake &>/dev/null; then brew install cmake; fi
fi
script:
- BUILD_DIR="${TRAVIS_BUILD_DIR}/build"
- mkdir -p "${BUILD_DIR}"
- cd "${BUILD_DIR}"
- cmake -DGLOBAL_PROJECT_NAME=stack ..
- make
- make test ARGS="-VV"