forked from google/fruit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (33 loc) · 1.71 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
language: cpp
before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo add-apt-repository -y 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise main'
- sudo add-apt-repository -y 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.5 main'
- sudo add-apt-repository -y 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.6 main'
- sudo apt-get update -qq
install:
# Always install latest GCC 4.8 to avoid bugs in old STL when compiling with Clang.
- sudo apt-get install -qq --force-yes g++-4.8
- sudo apt-get install -qq --force-yes valgrind ${COMPILER_TO_INSTALL}
script: CXX=${COMPILER_TO_RUN} ./postsubmit.sh
branches:
only:
- master
matrix:
include:
- compiler: gcc
env: COMPILER_TO_INSTALL=g++-4.8 COMPILER_TO_RUN=g++-4.8 RUN_RELEASE_TESTS_UNDER_VALGRIND=1
- compiler: gcc
env: COMPILER_TO_INSTALL=g++-4.9 COMPILER_TO_RUN=g++-4.9 RUN_RELEASE_TESTS_UNDER_VALGRIND=1
- compiler: gcc
env: COMPILER_TO_INSTALL=g++-5 COMPILER_TO_RUN=g++-5 RUN_RELEASE_TESTS_UNDER_VALGRIND=1
- compiler: clang
# Valgrind is disabled because it doesn't work in Travis CI
env: COMPILER_TO_INSTALL=clang++-3.4 COMPILER_TO_RUN=clang++ RUN_RELEASE_TESTS_UNDER_VALGRIND=0
- compiler: clang
# Valgrind is disabled because it doesn't work in Travis CI
env: COMPILER_TO_INSTALL=clang++-3.5 COMPILER_TO_RUN=clang++-3.5 RUN_RELEASE_TESTS_UNDER_VALGRIND=0
- compiler: clang
env: COMPILER_TO_INSTALL=clang++-3.6 COMPILER_TO_RUN=clang++-3.6 RUN_RELEASE_TESTS_UNDER_VALGRIND=1
- compiler: clang
env: COMPILER_TO_INSTALL=clang++-3.7 COMPILER_TO_RUN=clang++-3.7 RUN_RELEASE_TESTS_UNDER_VALGRIND=1