summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: e09a8023de0ae1bb6b7b990ac18864bdc78bd23a (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
language: c

addons:
    apt:
        packages:
            - gperf
            - elfutils
            - zlib1g-dev
            - libmemcached-dev
            - libmemcached-tools
            - memcached

os:
    - linux
    - osx

compiler:
    - gcc
    - clang

matrix:
    include:
        - os: linux
          compiler: gcc
          sudo: required
          dist: trusty
          env: FEATURES="--enable-memcached"
          env: CFLAGS="-m32 -g -O2" HOST="--host=i386-linux-gnu"
          addons:
              apt:
                  packages:
                      - gcc-multilib
                      - lib32z1-dev
        - os: linux
          compiler: i686-w64-mingw32-gcc
          env: HOST="--host=i686-w64-mingw32" TEST="unittest/run.exe"
          addons:
              apt:
                  packages:
                      - gcc-mingw-w64-i686
        - os: linux
          compiler: clang
          env: CFLAGS="-fsanitize=undefined" ASAN_OPTIONS="detect_leaks=0"
        - os: linux
          compiler: clang
          env: CFLAGS="-fsanitize=address -g" ASAN_OPTIONS="detect_leaks=0"
        - os: linux
          compiler: clang
          env: PATH="/usr/bin:$PATH" TEST=analyze
          addons:
              apt:
                  packages:
                      - clang    # scan-build
                      - gperf
        - os: linux
          compiler: gcc
          env: CUDA=8.0.61-1
          sudo: required
          before_install:
              - source ./.travis/install_cuda.sh

    exclude:
        - os: osx
          compiler: gcc

script:
    - ./autogen.sh
    - ./configure $HOST $FEATURES
    - make
    - make ${TEST:-test}