summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 9efb17f6f901f2df1382980e9b1dbfbdd3672baa (plain)
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
language: cpp

os:
  - linux
  - osx

dist: trusty
sudo: false

# OS X only supports one image. Us the latest.
osx_image:
  - xcode8.2
#  - xcode7.3
#  - xcode6.4

git:
  depth: 3

compiler:
  - clang
  - gcc

env:
  global:
    - BUILD_JOBS=2

  matrix:
    - BUILD_MODE="shared"
    - BUILD_MODE="static"
    - BUILD_MODE="no-asm"
    - BUILD_MODE="asan"
    - BUILD_MODE="ubsan"
    - BUILD_MODE="valgrind"

  exclude:
    # Skip GCC on OS X entirely
    - os: osx
      compiler: gcc

    # The sanitizer builds under Clang run the tests very
    # slowly and cause CI timeouts.

    - compiler: clang
      env: BUILD_MODE="asan"
    - compiler: clang
      env: BUILD_MODE="ubsan"
    - compiler: clang
      env: BUILD_MODE="valgrind"

# whitelist branches to avoid testing feature branches twice
branches:
  only:
    - master

#notifications:
#  email: jdoe@example.com